File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Updating a text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Updating a text file

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182

I have a file Workorder.txt file, from which i had to modify some values,

For eg:
PurchaseNo = 1111
Date = 01/01/2004
Description = New Purchase Order

Now if i to change the Date to 02/02/2004.Which stream should i use and how.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Please don't crosspost

[How To Ask Questions On JavaRanch]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Let's continue this in the duplicate post in the I/O and Streams forum.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Updating a text file
It's not a secret anymore!