|
-
Mar 19th, 2010, 08:12 AM
#1
Thread Starter
New Member
delimited text file into array()
Hi guys, I have a text file with for example this data in it :
"19 Mar 2010","6:00","16:00","10","1","9","6.61","£59.49¬"
"20 Mar 2010","9:45","19:15","10","1","9","6.61","£69.89¬"
"21 Mar 2010","9:00","17:00","8","1","8","6.61","£99.32¬"
I used " , " to delimit individual pieces of data and " ¬ " to denote end of line.
I'd like to be able to split the files into lines and assign each line to an array then split each of those array strings into the comma " , " delimited data and feed each piece of data into another array ready for writing to a datagridview.
I've spent a while trying to get Split() to work but I get errors regarding converting strings to one-dimensional arrays ?
Also the Split() method asks for a "ParamArray" but I haven't been able to find examples of other people providing them on the net any idea what those are about?
Hope I've made sense ??
Thanks in advance....
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|