Need help with import script

Hi, I’m writing and import script, and I need to know what code to use to get the file browser to access the file. I knew how to do this in 2.49, but in 2.54 I don’t have a clue.

if mean opening a file check this out http://blenderartists.org/forum/showthread.php?t=197640

that’s kind of the long way of doing it. you could just do:

file = open("c\\file.txt", "r")
file.read()

that will allow you to open and read the file. just change the c\file.txt to wherever your file is and whatever it’s called.

Both of you answers helped me greatly. Thanks! :smiley:

Okay, I’ve been able to open the file, read it, and build the mesh(verts and faces). Now I need to know, what do I do with the uvs and normals?