Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# code to read txt file line by line and split

string lines = File.ReadAllText(path);
string [] split_arr = lines.Split(';')//files containt ; seprated values
  foreach(string l in split_arr)
  {
    Console.WriteLine(l);
  }
 
PREVIOUS NEXT
Tagged: #code #read #txt #file #line #line #split
ADD COMMENT
Topic
Name
1+8 =