Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

write text files with C#

// Create a file to write to.
string createText = "Hello and Welcome" + Environment.NewLine;
File.WriteAllText(path, createText);

...

// Open the file to read from.
string readText = File.ReadAllText(path);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #text #files
ADD COMMENT
Topic
Name
7+4 =