Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# file read

using(StreamReader file = new StreamReader(textFile)) {  
 int counter = 0;  
 string ln;  
  
 while ((ln = file.ReadLine()) != null) {  
  Console.WriteLine(ln);  
  counter++;  
 }  
 file.Close();  
} 
Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #file #read
ADD COMMENT
Topic
Name
8+7 =