How to close an open file in Windows if I know its name, for example "C:1.txt" (it is opened vis CreateFile(...))? Thanks
Just close the handle that was created when you made a call to CreateFile. CloseHandle()
CloseHandle()
BTW, why use windows API when you have C++ standard methods to handle files?
See this
1.4m articles
1.4m replys
5 comments
57.0k users