Can anyone give me a linkto a tutorial or expalin to me how i can make my own file type in C++?
Can anyone give me a linkto a tutorial or expalin to me how i can make my own file type in C++?
When you're creating the file, just add the extension you want to use. For example, if you want to make a save game file with a ".sav" extension, you'd type:
[code]
ofstream saveFile("someFile.txt");
saveFile << data << endl;
saveFile.close();
[\code]
Hope that helps!
Brendan
Thnks. yeah i figured it out but i have one more question when i open some file types(like bmp) in notepad it comes up with jumbled characters does that have to do with encryption or just length of the file?