Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a text file that has lines that look like this:

 

001,Mickey Mouse ,5000,200

 

The first is a string and is 3 characters

The second is a string and fixed at 25 characters

The last two are singles

 

I know how to open the file and read the lines, but how can I separate the values that are text delimited and put them into an array? I know I need a loop to do this, and probably an integer variable to hold the number of records in the array.

 

I also need to display the ID numbers (first 3 chars) in list box... how?

 

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...