char *pszFileName2="C:\\My Documents\\mfc.txt";
MessageBox("Unable To Open");
if(lstrlen(pbuf3) != 0)
The following code above will read the contents of the file into a variable and then modification will be taken place on the variable before it is written back to the file.
The problem that i am facing is in the modification of the contents of the file. When i use the lstrcpy function it will copy the value 0 into the variable. After that using that value it will be written in the file. The problem now is the contents of the file.
It is not 0 alone in the file instead the first character will be 0 and the other character still remains there.
For instance the file has a value 400.
When i write the value 0 into the file it will look like this :