Click here to Skip to main content
15,911,479 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Do you know it?

Program A is writing the file now.

By the way, Program A opened the file not using Share mode.

How can I read the file using "CreateFile" and "ReadFile" APIs?

It bothers me nowadays.

Help me.
Posted

1 solution

Check the documentation for "CreateFile" and "ReadFile", try to read the file, and if it does not work come back with a specific question.

http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx[^]
http://msdn.microsoft.com/en-us/library/aa365467(VS.85).aspx[^]

Good Luck :)
 
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