Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 13th, 2008, 10:53 PM   #1
domquem
Newbie
 
Join Date: Jun 2005
Posts: 7
Rep Power: 0 domquem is on a distinguished road
Send a message via Yahoo to domquem
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
domquem is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC