Read .txt with delimiter ,

  • Thread starter Thread starter extream87
  • Start date Start date
E

extream87

Guest
Hello all, im trying to read an txt file that have "," as delimiter and each line cointains for example:
One,1
Two,2

Three,3

Im trying but i cant figure it out how to do it.

I want to read this txt file and access for example: string(1,1) & string(1,2)

As shown above:


string(1,1) -> in this case left 1 will be the line number and right 1 will be the left part of delimiter. Result = One

string(1,2) -> in this case left 1 will be the line number and right 2 will be the right part of delimiter. Result = 1


Thanks all

Continue reading...
 
Back
Top