i using seekp() function to change the pwd, but it can only change the first row of peter's pwd. Wat i wanted was to change only the pwd that belongs to only mary if marry has login. How can do it? need some advice!!!
this is wat my text file looks like:
peter:pwd:abcd marry:pwd:efgh jane:pwd:ijkl
ps: i try to match the username to my text file but it still only change the first row.