Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need your help to coding

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need your help to coding

    hello everybody,
    currently im need a code can browse to file and display a file content to the screen.

    because the input file just have only 1 line, and now i want to display in multi-lines to easy to read it.
    Ex file:
    001343 <DataPDU xmlns="urn:test:saasd:saa.2.0"><Header><Message><SenderReference>ba3d 7bd26-91d4-46be-ba12-4c1363e36f23</SenderReference><MessageIdentifier>fin.502</MessageIdentifier><Format>MT</Format><Sender><BIC12>BANKCOLLAXXX</BIC12><FullName><X1>BANKCOLLXXX</X1></FullName></Sender><Receiver><BIC12>CORRBEAAXXXX</BIC12><FullName><X1>CORRBEAAXXX</X1></FullName></Receiver><InterfaceInfo><UserReference>TRNREF001MT </UserReference></InterfaceInfo><NetworkInfo><Priority>Normal</Priority><IsNotificationRequested>false</IsNotificationRequested><Service>swift.fin</Service><FINNetworkInfo><CopyService></CopyService><MessageSyntaxVersion>0805</MessageSyntaxVersion></FINNetworkInfo></NetworkInfo><SecurityInfo><IsSigningRequested>fals e</IsSigningRequested></SecurityInfo></Message></Header><Body>DQo6MTZSOkdFTk</Body></DataPDU>

    and now i want it'll display as:
    SenderReference: ba3d7bd26-91d4-46be-ba12-4c1363e36f23
    MessageIdentifier: fin.502
    Format: MT
    Sender: BANKCOLLAXXX | BANKCOLLXXX
    Receiver: CORRBEAAXXXX | CORRBEAAXXX
    Service: swift.fin
    FINNetworkInfo: CopyService
    MessageSyntaxVersion: 0805
    Body: DQo6MTZSOkdFTk

    ----------------

    everyone help me
    thanks and best regards,


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Need your help to coding

    No... just no.

    This is not how these forums work and I'm astonished you logically thought it did.
    Put some effort in, start writing, come back when you're stuck.
    Last edited by newbie; November 13th, 2011 at 07:55 AM.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  3. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Need your help to coding

    In future, please post in the correct forum. I have moved this thread.

    I suggest you read:

    http://www.javaprogrammingforums.com...ner-class.html

    http://www.javaprogrammingforums.com...redreader.html
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. Great to be coding again!
    By Becca in forum Member Introductions
    Replies: 3
    Last Post: November 3rd, 2011, 06:37 AM
  2. J2me coding
    By sjaf in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: September 13th, 2011, 02:47 AM
  3. Help Huffman Coding>>
    By cool_97 in forum What's Wrong With My Code?
    Replies: 35
    Last Post: July 23rd, 2011, 04:27 PM
  4. Coding error
    By chemy G in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 2nd, 2010, 08:36 AM
  5. Help me in java coding
    By smallmac in forum Java Theory & Questions
    Replies: 5
    Last Post: August 2nd, 2010, 09:50 AM