T
tobleron
Hi,
I have a text file named user.txt that contains data like this :
========
test;myecg;
test1;pass1;
tes2;mypass;
========
The first column is userID and the second column is password. I want
to write a Java code to update the password for user number 1, for
example become like this :
========
test;newecg;
test1;pass1;
test2;mypass;
========
I know that java.io has classes to read and write a text file. But how
to update the data inside a text file ? Is there anyone can help ?
Thanks in advance.
best regards,
Budhi
I have a text file named user.txt that contains data like this :
========
test;myecg;
test1;pass1;
tes2;mypass;
========
The first column is userID and the second column is password. I want
to write a Java code to update the password for user number 1, for
example become like this :
========
test;newecg;
test1;pass1;
test2;mypass;
========
I know that java.io has classes to read and write a text file. But how
to update the data inside a text file ? Is there anyone can help ?
Thanks in advance.
best regards,
Budhi