Author Topic: VC++ file write  (Read 676 times)

Anonymous

  • Guest
VC++ file write
« on: February 12, 2002, 09:38:41 AM »
i am making a project in VC++(API),for which i have to
write in a file line by line like
aaaaaaaaaa
bbbbbbbbbbbbbbb
ccccccccccccc

and not like
aaaaaaaaaabbbbbbbbbbbbbbbccccccccccccc

i used the function
WriteFile(handle,buf,dwBytesRead,&dwBytesWritten,NULL)
but it always write the buffer in the end of file.how
i can write in file line by line