Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change the values in the file (output)

 
kirankkmm kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Soumyajit Hazra
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This Link may help you.
 
kirankm kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//
bufferedWriter = new BufferedWriter(new FileWriter(outputFile));
FileInputStream fis = new FileInputStream(f);

....... code

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic