working with files (text files)
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