c# - How to read a space-delimited text file with empty columns -
i'm trying read space-delimited file using streamreader.
for i'm reading file line line split them arrays , reading specific data providing index.
the problem when in rows column empty. causes program reach wrong item.
col1 col2 col3 b c d e f g h for example, i'm having problems second row.
unless have fixed width columns wont know value should empty, if have control on format should wrap values in quotes, or have csv format quotes value wrapping, espacing inner quotes, can have luxury of view if in excel :-) free.
Comments
Post a Comment