Results 1 to 2 of 2
  1. #1
    phantom06 is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

    Default Write to a specific line in a file

    I have this file:
    Crazy love hollywood edition,Crazy love,04:26,Hold on,04:01
    Recovery,Love the way you lie,04:23,Cinderalla Man,04:36
    Speak now,Mine,03:55,Speak now,04:03

    How do i write to the end of each line?
    For example:
    In this line, i want to add hello, 05:34
    Recovery,Love the way you lie,04:23,Cinderalla Man,04:36

    Thus, it will look like this:
    Recovery,Love the way you lie,04:23,Cinderalla Man,04:36,hello, 05:34

    I need to use a gui to do this
    Is there any way? The comma are used as delimiters.
    Thank you

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    First figure out how do to this without a GUI, using Java I/O, then later use that same code as the "model" for your GUI. The Java tutorials will show you how to do the IO, and if you haven't studied them, I recommend that you give them a look.

Similar Threads

  1. read a specific line in an input file
    By sara12345 in forum Advanced Java
    Replies: 7
    Last Post: 01-03-2010, 10:40 PM
  2. writing to specific line in text file
    By mickmos in forum New To Java
    Replies: 2
    Last Post: 04-18-2009, 01:01 PM
  3. Write to line in file
    By blackstormattack in forum New To Java
    Replies: 3
    Last Post: 03-09-2009, 12:59 PM
  4. Writing To A Specific Text File Line
    By mokonji in forum New To Java
    Replies: 1
    Last Post: 03-02-2009, 08:13 PM
  5. Replies: 2
    Last Post: 11-08-2008, 10:40 AM

Posting Permissions

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