How to use BasicReaderWriter to write to a file

Nekusta

New member
Aug 17, 2013
25
0
0
So basically I need to write a few variables from here and there to a text file and save it for a DirectX Win8 game. Can someone explain a little how to use the WriteDataAsync function? A tutorial or something where they actually explain how to write to a file using this class
 
Last edited:
Hi there, if you only need to read and write text from/to files, then there are easier ways to do that. Please take a look at the FileIO class. It provides methods like WriteTextAsync, WriteLinesAsync (plus same for Read). If you only have a file path instead of a StorageFile object, you can use PathIO class, where you specify the target file as path string instead of a StorageFile object.

If you work with Streams and ReaderWriter classes, things get really complicated. FileIO and PathIO are a LOT easier to use, if it is only simple reading and writing.
 

Members online

No members online now.

Forum statistics

Threads
338,969
Messages
2,261,993
Members
428,750
Latest member
Ironmonkey810