1 Reply Latest reply: Mar 17, 2013 2:33 PM by 939520 RSS

    Read Specific value/Search Into file

      Hi i need a java code which read specific value from a file.

      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
          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.