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 Head First Android this week in the Android 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: 20049
    
  30

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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to change the values in the file (output)
 
It's not a secret anymore!