Results 1 to 3 of 3
  1. #1
    macpilz is offline Member
    Join Date
    May 2010
    Posts
    2
    Rep Power
    0

    Default Selecting Specific Data in a file and writing to another

    I am trying to select specific data from a text file and write to the another file,in the same instance i want this application to loop the results,each time it obtains the right string,it should read, write and return to searching more strings, i have no idea on where to begin,assistance please :o

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by macpilz View Post
    I am trying to select specific data from a text file and write to the another file,in the same instance i want this application to loop the results,each time it obtains the right string,it should read, write and return to searching more strings, i have no idea on where to begin,assistance please :o
    Maybe you can read your file(s) line by line (or String by String, whatever is more comfortable to you) and have a Collection ready (maybe a List or a Set or whatever). When you have read your file(s) and filled your Collection with the relevant data process it and write the results to your output file.

    kind regards,

    Jos

  3. #3
    macpilz is offline Member
    Join Date
    May 2010
    Posts
    2
    Rep Power
    0

    Default

    the issue is i want to write to a pre made template,so i was thinking of creating a GUI that directly writes to this template,so instead of writing from the file,i can just print out the data,and write in the information manually....you think its a bad idea?

Similar Threads

  1. problem with writing new data into file
    By sara12345 in forum New To Java
    Replies: 2
    Last Post: 04-13-2010, 02:34 AM
  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. Writing To A Specific Text File Line
    By mokonji in forum New To Java
    Replies: 1
    Last Post: 03-02-2009, 08:13 PM
  4. Reading data from csv file based on specific input
    By jaiminparikh in forum Advanced Java
    Replies: 14
    Last Post: 02-13-2009, 09:07 PM
  5. Replies: 2
    Last Post: 11-08-2008, 10:40 AM

Tags for this Thread

Posting Permissions

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