File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes How to change the values in the file (output) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to change the values in the file (output)" Watch "How to change the values in the file (output)" New topic
Author

How to change the values in the file (output)

kirankkmm kumar
Greenhorn

Joined: Sep 17, 2010
Posts: 7

I need to change the values of the output file.. as below


inputfile.txt

c=USA
name=kk
lastname=kumar

outputfile.txt

co=US
name=kk
lastname=kumar

Can anyone tell me how to change the values by using bufferwriter..

thanks in advance.



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19684
    
  20

What have you tried so far? We will help you find a solution, but in the end you'll have to do it yourself. Otherwise you won't learn anything.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Soumyajit Hazra
Ranch Hand

Joined: Jun 26, 2007
Posts: 136
This Link may help you.


Java Programmer | SCJP 1.5 | SCWCD 1.4
kirankm kumar
Greenhorn

Joined: Sep 17, 2010
Posts: 2
//
bufferedWriter = new BufferedWriter(new FileWriter(outputFile));
FileInputStream fis = new FileInputStream(f);

....... code

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change the values in the file (output)