my file is sitting in the netbeans resources folder(which by the way is already annoying to add into, a right click and then add existing item option...) and I constantly(always) get the error message from this.
That's everything I included, and then the function itself, the only thing I didn't put was the function prototype, since it shouldn't effect this at all.
You'll need to provide the full path to the file if it is not residing in the working directory for the executable. Also it's not fstream::in but ios_base::in.