TheTechGuide Forum

General Category => Tech Clinic => Topic started by: Anonymous on February 12, 2002, 09:38:41 AM

Title: VC++ file write
Post by: Anonymous 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