Greetings: I'm new to C programming. I was experimenting with an example I found on line. It began #include <fstream>. When I tried to compile it I got the error message fstream file not found. I searched for the file and I found it in folder C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\5.1.0\inclu de\c++.

I added this folder to path thinking that would fix it. However, that didn't work.

Please advise.