Answered by:
save textbox data in a local folder vs 2013 c#

Question
-
i am making an editor and i have in trouble. i wrote data in notepad.txt that is a textbox. and i want to save data in my local folder by the name of sample.txt then how can i do .how textbox data would be save in sample.txt in my folder.can anyone tell me.i am doing this in c# vs 2013 for windows store app
Rabia (Microsoft Student Partner)
Wednesday, March 12, 2014 12:14 PM
Answers
-
Hello Rabia,
you can create a file with the CreateFileAsync method of the StorageFolder class and write text to the file by calling the WriteTextAsync method of the FileIO class.
You can also use a stream to write text to a file and save it.
More information about reading and writing files for Windows Store Apps can be found at [1].Kind regards,
Bo Liu
App-Entwickler-Hotline für MSDN Online Deutschland
Disclaimer:
Bitte haben Sie Verständnis dafür, dass wir hier auf Rückfragen gar nicht oder nur sehr zeitverzögert antworten können.
Bitte nutzen Sie für Rückfragen oder neue Fragen den telefonischen Weg über die App-Entwickler-Hotline: http://www.msdn-online.de/Hotline
Es gelten für die App-Entwickler-Hotline und dieses Posting diese Nutzungsbedingungen, Hinweise zu MarkenzeichenInformationen zur Datensicherheit sowie die gesonderten Nutzungsbedingungen für die App-Entwickler-Hotline.- Marked as answer by Jamles HezModerator Tuesday, March 18, 2014 1:34 AM
Wednesday, March 12, 2014 12:43 PM -
Bo Liu's solution is quite good.
More information for you :Quickstart: Reading and writing files which contains useful code snippet.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Jamles HezModerator Tuesday, March 18, 2014 2:24 AM
Tuesday, March 18, 2014 1:34 AMModerator
All replies
-
Hello Rabia,
you can create a file with the CreateFileAsync method of the StorageFolder class and write text to the file by calling the WriteTextAsync method of the FileIO class.
You can also use a stream to write text to a file and save it.
More information about reading and writing files for Windows Store Apps can be found at [1].Kind regards,
Bo Liu
App-Entwickler-Hotline für MSDN Online Deutschland
Disclaimer:
Bitte haben Sie Verständnis dafür, dass wir hier auf Rückfragen gar nicht oder nur sehr zeitverzögert antworten können.
Bitte nutzen Sie für Rückfragen oder neue Fragen den telefonischen Weg über die App-Entwickler-Hotline: http://www.msdn-online.de/Hotline
Es gelten für die App-Entwickler-Hotline und dieses Posting diese Nutzungsbedingungen, Hinweise zu MarkenzeichenInformationen zur Datensicherheit sowie die gesonderten Nutzungsbedingungen für die App-Entwickler-Hotline.- Marked as answer by Jamles HezModerator Tuesday, March 18, 2014 1:34 AM
Wednesday, March 12, 2014 12:43 PM -
Bo Liu's solution is quite good.
More information for you :Quickstart: Reading and writing files which contains useful code snippet.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Jamles HezModerator Tuesday, March 18, 2014 2:24 AM
Tuesday, March 18, 2014 1:34 AMModerator