cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
C++ and custom files
C++ and custom files
May 1, 2017 at 5:53pm UTC
TheScripterGeek
(28)
Lets say I have a .thescriptergeek file. Not even set up in registry, no program to edit it, etc. Could I treat it as if a .txt file?
May 2, 2017 at 7:52am UTC
coder777
(8443)
Sure, the os will ask you how to open it and you can choose a text editor.
If you create a program you are not bound to the file extensions.
May 2, 2017 at 12:37pm UTC
boost lexical cast
(395)
Like @coder777 said, file extensions don't matter at all for C++ (e.g. using
fstream
). The file extension is just treated as part of the file name with
fstream
.
Topic archived. No new replies allowed.