This discussion is archived
1 Reply Latest reply: Mar 17, 2013 12:33 PM by 939520 RSS

Read Specific value/Search Into file

997174 Newbie
Currently Being Moderated
Hi i need a java code which read specific value from a file.

Example:
I have a text file named data.txt

it contain :

Customer Name :Sarwar
Customer Id : 001
Product Price :2000

now how can i take values 001 and 2000 from the file data.txt and save them in a another text file named new_data.txt ?

Can any one help me?
  • 1. Re: Read Specific value/Search Into file
    939520 Explorer
    Currently Being Moderated
    Search Google for 'java file read'. Wanna write to a file? Search for 'java file write'. Ain't Google awesome?

    If you haven't already done so, I suggest you search www.amazon.com for a beginner book on Java that has good reviews. Its much more efficient to read a book on Java than spend countless hours trying to learn it through code examples found on the internet.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points