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.

https://en.wikipedia.org/wiki/comma-separated_values


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -