>ofstream file(fileName ".editor");
There's nothing between fileName and ".editor", which in this case is a syntax error. C-style strings are harder to work with. If you were using C++ strings then the fix would be as simple as:
Code:
ofstream file((fileName + ".editor").c_str());
But as it is, you need to concatenate ".editor" onto the end of fileName using something like strcat:
Code:
#include <cstring>
// ...
char fileName[100];
cout << "What do you want you're .editor to be today?\n";
// Leave room for the extension
if (cin.getline (fileName, 93, ' ')) {
strcat(fileName, ".editor");
ofstream file(fileName);
// ...
}