Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# read file stream

//this will get a string with all the text from the file
var fileText = File.ReadAllText(@"path	omyfile.txt");

//this will get all of the lines of the file as an string[]
var fileLines = File.ReadAllLines(@"path	omyfile.txt");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #file #stream
ADD COMMENT
Topic
Name
6+8 =