Find more posts tagged with
Thanks Lorenzo.
It works for the file conversion.
My problem now is to invoke that file (.oml) inside the scripting code.
I already tried to type the name of the file on editor's window but unfortunately it doesn't work.
Do you know as well how to do that?
Any help would be greatly appreaciated.
Thank you.
Ok I explain better.
When for instance I want to read the content of a .txt file in my scripting I just type something like this:
file = fopen ( ' nodes.txt'.'r');
nodes = textscan(fid, %d %f %f %f %f )
fclose(fid);
Now I want to read all data from my .oml file as well.
What command I need to use to open my .oml file, that's my doubt?
For instance from MATLAB I know that when you need to call a (.m) file in your code you just type the name and the program automatically recognizes it.
Hope this make sense.
Let me see if I get your point.
Let's assume that:
file = fopen ( ' nodes.txt'.'r');
nodes = textscan(fid, %d %f %f %f %f )
fclose(fid);
is my 'reading.oml' file.
You have more ways to run it:
1) open it in the editor window and click on the run icon (top-left corner of Compose interface);
2) type its name in the Command window and press 'enter'
3) call it from a master script. For this case look at the script 'master.oml' in attached
Have I answered your question?
Cheers,
Lorenzo
P.S. to use the files in attached put them in the same folder. And check that the pwd of Compose is pointing at that folder.
Hi HenLopes,
could you please post here something similar to what you're trying to read?
Thanks,
Lorenzo