Тёмный

Advanced I/O - CreateFile, WriteFile, ReadFile, CloseHandle 

IQ95 The Homo Siliconiens
Подписаться 6 тыс.
Просмотров 6 тыс.
50% 1

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...

Опубликовано:

 

11 авг 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@hbibamrani9890
@hbibamrani9890 3 года назад
Hello Mr Kim! Can you make a video explaining file access with MapViewOfFile function please?
@timhuang5533
@timhuang5533 3 года назад
why there is only first element print out when i type cout
@HomoSiliconiens
@HomoSiliconiens 3 года назад
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.
@ctutor2781
@ctutor2781 5 лет назад
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.
@HomoSiliconiens
@HomoSiliconiens 5 лет назад
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.
@ctutor2781
@ctutor2781 5 лет назад
@@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.
@HomoSiliconiens
@HomoSiliconiens 5 лет назад
@@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.
@TheLoquenderonovato
@TheLoquenderonovato 3 года назад
Hello. I have one question. Does it work in the same way in normal C?
@sul3y
@sul3y 3 года назад
Yeah as long as you include windows.h library however c++ is nicer...
@TukeShark
@TukeShark 4 года назад
nice video
@HomoSiliconiens
@HomoSiliconiens 4 года назад
You can download source code from sourcecode.talkplayfun.com Thank you for your comment.
@TukeShark
@TukeShark 4 года назад
Thomas Kim thank you for the source it helped
@sul3y
@sul3y 3 года назад
Yo, make these win32 api alot please
@soumyaranjanmahunt1452
@soumyaranjanmahunt1452 3 года назад
Next time before recording video clear your recent files :)
@HomoSiliconiens
@HomoSiliconiens 3 года назад
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.