How to use BasicReaderWriter to write to a file

Nekusta

New member
Aug 17, 2013
25
0
0
Visit site
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:

luke_f

New member
Oct 6, 2014
81
0
0
Visit site
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

Forum statistics

Threads
326,933
Messages
2,249,090
Members
428,551
Latest member
Tim Hilton