When I click on the compile/run icons in the upper left corner of the devcpp ide my program runs fine. But when i run my program from outside the editor it crashes by just double clicking on it (the exe icon), it crashes.
I think I know where the problem is but I don't understand it. My program reads text files and then acts upon what values it finds in them. When I hard code all the values in and completely comment out the readfile code the program runs fine when I double clicking on the exe icon.
I don't understand why using fstream only works for me if i click the compile&run/run icon in the editor and crashes if i try to run the program without the editor.
Thank you for reading this and your help/comments.