Vote count:
0
is there any way to read text files with fixed columns in C # without using regex and substring?
I want to read a file with fixed columns and transfer the column to an excel file (.xlsx)
example 1
Id name age training
----------------------
1 John 22 graduate
2 Deep 23 technical
example 2
Id name age training
----------------------
1 John 22 graduate
2 Deep 23
remembering that I have a case as in the second example where a column is blank, I can get the columns and the values using regex and / or substring, but if it appears as a file in Example 2, with the regex line of the file is ignored, so does substring.
asked 1 min ago
read text file with fixed columns in c#
Aucun commentaire:
Enregistrer un commentaire