Notifications
Clear all
[Closed] Search string in a text file
Jan 17, 2013 5:59 pm
how to read specific string from a file? for example i have txt:
Mesh Texture Stage #0 Saved: с:\Frame0000\Tex_0000_0.dds
Mesh Texture Stage #1 Not Exist
Mesh Texture Stage #2 Not Exist
Mesh saved: с:\Frame0000\Mesh_0000.rip
Mesh Texture Stage #0 Saved: с:\Frame0000\Tex_0000_0.dds
Mesh Texture Stage #1 Not Exist
Mesh Texture Stage #2 Not Exist
Mesh saved: с:\Frame0000\Mesh_0010.rip
Mesh Texture Stage #0 Saved: с:\Frame0000\Tex_0000_0.dds
Mesh Texture Stage #1 Not Exist
Mesh Texture Stage #2 Not Exist
Mesh saved: с:\Frame0000\Mesh_0052.rip
i need to search ALL “Tex_NUMBER” strings and make an array from each “Mesh_NUMBER” next to “Tex_NUMBER” string
and then i need to import this array into max