So the program is supposed to create a file which it does fine but when it comes to opening hat file back up the program for some reason just skips over it and wont opn it and write to it, could anyone give me some pointers about what I might be missing
The write() function is the name of a standard "C" low-level function. You should rename it. Also, add some tests of the fstream flags to see perhaps why your code is failing. I'm thinking primarily of the functions that are inherited from ios.
alright I renamed the write() function and I changed the create() function to ofstream and then i changed cin >> name to a getline(cin,name) and everything worked thank you for your input, have a nice day .