Hi everyone,
I am trying to write a Macro than can modify a text documents and edit it according to my requirement. For example i have a text document which contains lines:
facet normal -6.930870e-001 -7.208539e-001 -0.000000e+000
outer loop
vertex 3.535534e+000 3.535534e+000 0.000000e+000
vertex 3.394004e+000 3.671613e+000 5.000000e+000
vertex 3.394004e+000 3.671613e+000 0.000000e+000
end loop
I would like to edit this text file select only the numerical values in the loop and make them comma separated. This text would look like
3.535534e+000, 3.535534e+000, 0.000000e+000
3.394004e+000, 3.671613e+000, 5.000000e+000
3.394004e+000, 3.671613e+000, 0.000000e+000
Also what would you do if you have n number of loops? I have read that the following manipulation has to be done using Strings. I shall be grateful if you could provide a Macro to this.
Thanks.
Bookmarks