Hello,
As I love to develop file I/O applications and my new development platform is Windows Mobile. Is there any way to read all the file, without using File.ReadAllText? Because Windows Mobile don't have this function.
Hello,
As I love to develop file I/O applications and my new development platform is Windows Mobile. Is there any way to read all the file, without using File.ReadAllText? Because Windows Mobile don't have this function.
Write your own:
static string ReadAllText(string path) {
using (var r = new StreamReader(path)) {
return r.ReadToEnd();
}
}
A lot of the file operations are supported by the mobile framework, for example:
string text;
using (StreamReader reader = File.OpenText(fileName)) {
text = reader.ReadToEnd();
}