soapygus
asked on
Parse a text file based on column numbers c#
Hello Experts,
I have a large text file of data which is not delimited. It appears that each field begins a specific number of characters into each line.
Like so:
Field001 Field002 Field003Field004 Field005
Field0010003 Field00234 Field003Field004 Field005
Field00123 Field0030 Field004Field004 Field005
I am comfortable workng with CSV and other delimited files. What is the best way to clean this file up using C#?
Thanks for any help.
I have a large text file of data which is not delimited. It appears that each field begins a specific number of characters into each line.
Like so:
Field001 Field002 Field003Field004 Field005
Field0010003 Field00234 Field003Field004 Field005
Field00123 Field0030 Field004Field004 Field005
I am comfortable workng with CSV and other delimited files. What is the best way to clean this file up using C#?
Thanks for any help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.fileio.textfieldparser.aspx
http://msdn.microsoft.com/en-us/library/zezabash.aspx
(yes...you can use it in C#)