We learn how to use CreateFile(), WriteFile(), ReadFile(), CloseHandle() function to manipulate files using C++ on Windows. Download source code: www.TalkPlayFun.com/bison_flex...
I am sorry, I don't know. Right-click the download link in the description, and paste it in the URL box in your web-browser, then you can download the source code. Try my source code and compare it with yours.
Thank you for the video, great job. I have a question: How would you write an array of integers to the file that can be read in an application like notepad? I have not found a way that you can write integers with 'WriteFile()' that is readable in a basic text editor. Do you know how that would be done? Thank you.
WriteFile() and ReadFile() functions are for low-level programming especially for (synchronous and asynchronous) device I/O. For normal application programming, if you do not want to squeeze extreme performance, you can safely use fopen, fprintf, fscanf, or fostream, fistream, etc. Since you asked about WriteFile(), I will film a short video about how to. If you want to write a number using WriteFile(), you have to translate the number into ASCII text before you write the number, otherwise, the notepad interprets the written number as a sequence of ASCII text, not as a number. I will make a short film and then let you know.
@@HomoSiliconiens Thank you so much! I look forward to a video of the solution!!! I have been playing around with writefile() and that is the determination that I came to, I just figured I didn't know what I was doing. Thank you again, I look forward to the updated video.
@@ctutor2781 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9-L_kGbo2kg.html Hope this video helps you solve your problem. Please give LIKE button, and share it with your friends.
Man, I do not clean up the source code offline. I make changes to the source code only during filming the video. Reason: to help the audience easily pick up from the previous session.