I have tried it now but the data that I input was just written after the last line on my file. For example, in my DAT file, i have written
Anna
Abby
Allan
and if i try the readwrite action just like this
Open (unit=13, file='data.dat', status='new',action='readwrite')
Read(13,*) a,b,c...