You are viewing our Forum Archives. To view or take place in current topics click here.
Data Writes For Visual Studio
Posted:
Data Writes For Visual StudioPosted:
Status: Offline
Joined: May 10, 201113Year Member
Posts: 32
Reputation Power: 1
Status: Offline
Joined: May 10, 201113Year Member
Posts: 32
Reputation Power: 1
This is somewhere that you can write files to from visual studio or C#
#2. Posted:
Status: Offline
Joined: Dec 21, 201212Year Member
Posts: 13
Reputation Power: 0
Status: Offline
Joined: Dec 21, 201212Year Member
Posts: 13
Reputation Power: 0
What exactly are you trying to talk about?
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
If you are talking about creating and writing to text files, this is the basics in C#:
//reference the IO namespace at the very top of your code
using System.IO;
string path; //path of file to be created
using(StreamWriter sw = File.CreateText(path))
{
sw.Write("Text to Write"); //writes text to file
sw.Write("More Text to Write"); //writes text to file
} //the using block will automatically flush and close the stream
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.