Results 1 to 3 of 3
  1. #1
    megalomitis is offline Member
    Join Date
    Nov 2009
    Rep Power

    Default How to read/write txt in Java

    Hi i am beginner and i have a problem
    How can you read a txt file ,which every line finish with 'enter',
    and write into a matrix NxM where n is the characters of the line and M is the number of the lines?

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    What have you tried?

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    Quote Originally Posted by r035198x View Post
    What have you tried?
    Yes what you have done? Please show your effort here first. Then we can help you. I don't think that anyone wants to do your homework at all.

Similar Threads

  1. Replies: 1
    Last Post: 07-25-2009, 06:53 PM
  2. How to read first 9 bytes and write in...?
    By aRTx in forum New To Java
    Replies: 8
    Last Post: 03-26-2009, 03:54 PM
  3. Executable java to read and write to a txt file
    By njoymirror in forum New To Java
    Replies: 2
    Last Post: 03-21-2009, 02:19 AM
  4. How Read and Write XMl files using Java
    By tjs in forum SWT / JFace
    Replies: 0
    Last Post: 02-23-2009, 01:19 PM
  5. Read and Write file
    By mrdestroy in forum New To Java
    Replies: 13
    Last Post: 10-31-2008, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts