hi, I'm currently doing an activity where I'm going to open a file and read the content of it by using CreateFile Function.
This is the code that I made just to open the file:
I suggest you use the C++ standard library functions. The windows system functions are lower-level (I think), probably more like the C++ stream's read and write member functions (unformatted input).