+ 6
Can we open .pdf or .doc from C++ using fstream?
I am creating a project for an airline reservation using C++. I created a function to print a passengers ticket, save it in a .txt or.htm file for viewing and change details later whenever needed... But now, I thought It would be better to save such documents in a .doc or .pdf file... So, can I open these files in the same way as the text files? Are they accessible like normal .txt,.bin or .htm files?
2 Answers
+ 3
No, C++ only allows .txt files to be opened.
+ 3
https://www.sololearn.com/discuss/382114/?ref=app
Sorry for the late update...