¡@

Home 

2014/10/15 ¤U¤È 10:12:24

iphone Programming Glossary: out.txt

Write to a File in Monotouch

http://stackoverflow.com/questions/1829954/write-to-a-file-in-monotouch

If you'd like to test it out this is some extremely simple code that'll write a file called out.txt to your app's Documents folder. This code also reads the contents of the file to show it was created for further verification.. date they were modified drill down into the most recently modified and look inside its Documents folder you'll find out.txt you can't find your app's folder by name because when your app is installed it gets stuffed inside a folder with a name.. in main.cs string path Environment.GetFolderPath Environment.SpecialFolder.Personal string filePath Path.Combine path out.txt File.WriteAllText will create a file and then write text to it. If the file already exists File.WriteAllText will overwrite..