Thanks for your reply, I've tried everything so far with no luck. I was thinking that it might be possibily due to the placement of my code? Since everything gets compiled in a linear fashion and the load parameter is near the end of the file. May be it's not locating the file because it isn't being loaded at the right time.
(Update: I was about to upload my code into I found out that somehow all of my .cpp files have been overwritten by the same texture loader I built a while ago, which has now angered me. I will try re-writting everything and hopefully may I might figure out my error along the way this time. If not I shall upload the code once I'm finished, Sorry about this and thank you everyone!)
Hey thanks for your reply. I have tried copying the obj file to the folder I compiled the application into and then tried running the program outside of Visual studio. I never create my projects in the default folder that VS selects. I've even tried pasting a copy of the obj file to my "D" drive and change the code to:
cube=loadObject("D: est.obj"); //load the test.obj file
I don't know if its exactly what you're after but there's a pretty good 2D map editor called "Tiled". If you visit http://www.mapeditor.org you can download the executables or source code. It runs on Windows and Mac OSX.