Is there a way physically open files from a C++ code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way physically open files from a C++ code?

Full question: Is there a way to open file types such as .exe, .jpeg, .mp3, etc. from inside a C++ program, WITHOUT USING Windows.h?

13th Dec 2019, 9:46 PM
UrBoyO
UrBoyO - avatar
2 Answers
+ 2
Well you can open these files using the "fstream" library, but because they are all binary type, you will have to decrypt the data first.
14th Dec 2019, 2:37 AM
RZK 022
RZK 022 - avatar
0
Martin Taylor Gamma001 Thank you both! I will try it out soon. :)
14th Dec 2019, 3:02 AM
UrBoyO
UrBoyO - avatar