|
-
Dec 1st, 2002, 05:48 PM
#1
Thread Starter
New Member
Beginner needs help with file I/O...
Lets say I have a data file delimited with semicolons like this:
item1description;12.50;18.99;10
item2description;9.25;12.00;35
item3description;19.60;25.75;4
I am wanting to be able to read each line and take from it, for example, the third field. What technique should I try using? I can use BufferedReader and the readLine()....I try to use loops nested in a for loop to search each character for the ';' but really dont know where to go from there. I can print the entire file out, but what should I be doing to get only certain fields? Can someone out there point me in a general direction (just give me advice...still want to try and figure this out myself....part of the learning process) ? If I didn't provide enough information for anyone to help me, just let me know and thanks in advance...
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
|