Results 1 to 2 of 2
Thread: working with files (text files)
- 02-23-2009, 04:08 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 99
- Rep Power
- 0
working with files (text files)
Hi
I have text file with many lines, in each line the first field is the key . I need simple method that two argument
String line , String key
Find the row with the key and replace the entire row with "line" ( assuming that the first field in the line is the key .. )
I didnt find how to write in the middle of the file. only how to ovride the file or append in the end of the file.
( :mad: Why java cant have simple file system like C )
Anyone have soemthing similar to what i askeD?
The text is look like that
key Field1 Field 2
---------------------
Abe2s Name1 Adress1
G6440 Name2 Adress2
- 02-24-2009, 11:38 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Kolkata
- Posts
- 280
- Rep Power
- 5
Similar Threads
-
Comparing Two Text Files
By coder09 in forum New To JavaReplies: 15Last Post: 03-03-2009, 06:11 AM -
Parsing Text Files
By coder09 in forum New To JavaReplies: 6Last Post: 02-18-2009, 12:08 PM -
Can someone help me working with files?
By Goodwine in forum New To JavaReplies: 4Last Post: 11-18-2008, 04:04 AM -
Behaving text files like binary files
By Farzaneh in forum New To JavaReplies: 2Last Post: 08-27-2008, 03:20 PM -
Text and image files within jar files
By erhart in forum Advanced JavaReplies: 8Last Post: 01-19-2008, 04:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks