Home > Enterprise >  How to read TXT file?
How to read TXT file?

Time:09-18

My Pictures folder in the phone, for example, put a test. TXT file, how to use the app to read the file?

CodePudding user response:

The string fileName=Path.Com bine (Environment. SpecialFolder. MyPictures, "test. TXT");
Bool b=File. The Exists (fileName);
if (! B)
return false;

String. TXT File=ReadAllText (fileName);
  • Related