Question Looking for data with how you write to disk?

JRaja

New member
Joined
May 5, 2017
Messages
2
Programming Experience
Beginner
Hello,

I am beginning to C# and looking for data with how you write to disk? Help.
 
Hello,

I am beginning to C# and looking for data with how you write to disk? Help.
You're asking how to write data to a file in C#?
If it's all text you can use System.IO.StreamWriter or if it's XML there's the System.Xml.XmlTextWriter but if it's some other type of data we'd need to know what as to point you in the right direction.
 
Here is an example writing to file.

Here is example of reading and writing to file.

Your efforts are appreciated but please use appropriate formatting tags when posting code snippets - especially long code snippets - for readability. I have edited your posts accordingly.
 
Back
Top Bottom