I found a lot of source codes which #include fstream.h file but i didn't have this file, so i checked and had to use #include fstream then use 'using namespace std;' What i want to know is the reason why this is used and whats the difference between the .h file and the extensionless one, regards