I have been trying to get the program to write some double values to a file. it creates the file but the file remains blank. if anyone could give me some guidance on this you may just save me from insanity. ty in advance.
Remove line 16. You are opening the same file twice. The constructor has opened the file already and then on 16 you open it again. It's only the second file that is written to and when the first file closes it truncates the second leaving you with an empty file.