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:

grantosgaming97
  • New Member
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:
BurnedDesigns
  • New Member
Status: Offline
Joined: Dec 21, 201211Year Member
Posts: 13
Reputation Power: 0
Status: Offline
Joined: Dec 21, 201211Year Member
Posts: 13
Reputation Power: 0
What exactly are you trying to talk about?
#3. Posted:
Skittle
  • Comment King
Status: Offline
Joined: Aug 20, 20149Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 20149Year 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


Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.