Click here to Skip to main content
15,886,813 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have file with 1062 bytes i have t o read 1024 after that 38 bytes how to use seek
to move to current position i.e write 1024 bytes to other file and 38 bytes using seek
Posted
Comments
[no name] 22-Apr-15 2:38am    
can u elobrate please ......... any sample example
[no name] 22-Apr-15 3:57am    
FILE_CURRENT);

long pos = high_dword << 32 | low_dword;

str1 = szMBuf;
int nLen = MultiByteToWideChar(932, 0, str1, -1, NULL, NULL);
int i = MultiByteToWideChar(932, 0, str1, -1, cszMBuf, nLen);

fileOut1.WriteString(cszMBuf);
::CloseHandle(hFileMac);


lTRead += lBytes;


} while (lBytes == 1024);</pre>

i have 1062 bytes it should read 1024 and 38 alter and right complete int o buffer ..but its doing differently .. righting again after 38 bytes

 
Share this answer
 
solved... buy memset the buffer .... thanks for the help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900