having trouble loading a .obj file into my code

I have a maya obj file and i am trying to load it in my program. It displays the correct verticies in the correct order except when I try to display in wireframe using GL_LINE_LOOP or display in polygon mode it doesnt display correctly. does anyone have experience in .obj files or know where i can get help with them

something every programmer should know about
www.wotsit.org and enter obj in the search.