I want to open and read a file but when I try to build my program it says
"fatal error: fstream.h: no such file or directory"
I am using code::blocks to write code and GNU CPP Compiler and code in c++.
the .h is a c-header file extension that you don't need here, just use #include <fstream>;
incidentally you can also change the other .h header files you're using by dropping the .h at the back and stick a c in front