![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
|
Reading Files in Java problem
I am new to the Java language::: Any hard core java coders out there!
I need a Simple JAVA snippet that will take a reference file a, that has the following information : 0|TicketType 1|Version 2|TimeStamp 3|TimeZone of TimeStamp 4|Assignment1 5|Assignment2 6|Logical1 7|CorrelationType 8|CorrelationID 9|TicketSequenceID 10|DisconnectBFlag It should then pick a file b that is delimited with the | character, and print out the various fields as per reference file a. 1|34|2008.01.07 12:21:55|12|4|5-1-1254710754638|abc401|0|00000101A20200000008F8164781EF260C00|0|0|E00318FFFFBFFFFE|254710754638|16| So that the output is 0|TicketType = 1 1|Version = 34 2|TimeStamp = 2008.01.07 12:21:55 3|TimeZone of TimeStamp = 12 4|Assignment1 = 4 5|Assignment2 = 5-1-1254710754638 6|Logical1 = abc401 7|CorrelationType = 0 8|CorrelationID = 00000101A20200000008F8164781EF260C00 9|TicketSequenceID = 0 10|DisconnectBFlag = 0 many thanks |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help. I got a problem in making Java games .. | bratsercom | Java | 11 | Oct 1st, 2007 2:31 PM |
| reading in a file in java | ryanl | Java | 3 | Sep 8th, 2005 9:54 AM |
| Java script problem | zeotrex | JavaScript and Client-Side Browser Scripting | 5 | Sep 2nd, 2005 5:30 AM |
| Reading Files, and Formating | brokenhope | C++ | 6 | Apr 18th, 2005 4:01 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |