Export / Import UV Texture Coordinates

Hi every one ,

i want to export my object into a file and then import file into 3dmax.
this code export and import vertex , faces index so good, but seems not export and import UV Texture Coordinates , so please how to fix it?

--------------------------------------------------------------------------------
my code to export object from 3dsmax:
--------------------------------------------------------------------------------
tmesh = snapshotAsMesh selection[1]
out_file = createfile ((GetDir #export)+"/testmesh.dat")
format "%,%\n" tmesh.numverts tmesh.numfaces to:out_file
for v = 1 to tmesh.numverts do
format "%," (getVert tmesh v) to:out_file
format "\n" to:out_file

for tv = 1 to tmesh.numverts do
format "%," (getTVert tmesh tv) to:out_file
format "\n" to:out_file

for f = 1 to tmesh.numfaces do
format "%," (getFace tmesh f) to:out_file
close out_file

--------------------------------------------------------------------------------
my code to import object into 3dsmax :
--------------------------------------------------------------------------------
vert_array = #()
tex_array = #()
face_array = #()
in_file = openFile ((GetDir #export)+"/testmesh.dat")
if in_file != undefined then
(
num_verts = readValue in_file
num_faces = readValue in_file
vert_array.count = num_verts
face_array.count = num_faces

tex_array.count = num_verts

for v = 1 to num_verts do vert_array[v] = (readValue in_file)

for t = 1 to num_verts do tex_array[t] = (readValue in_file)

for f = 1 to num_faces do face_array[f] = (readValue in_file)
close in_file
new_mesh = mesh vertices:vert_array tvertices:tex_array faces:face_array
)

thank you.