- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » read file as a Real
Page Start Prev 1 Next End
read file as a Real
read file as a Real
Jan-27-15 22:43:59
Hi,
I have below test.txt
2.33
3.45
2
I am read firts line of file (2.33) with Streams.readLine() commands.
Return value of this command a string. But actually this value is Real parameter.
How can read this value as a Real variable?
OM have stringtoReal function or something?
Thanks
oki
Re: read file as a Real
Jan-30-15 17:23:35
https://build.openmodelica.org/Document … nReal.html
OpenModelica has a stringReal function if you use the MetaModelica extensions, but you probably don't want that.
- sjoelund.se
- 1700 Posts
Page Start Prev 1 Next End
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » read file as a Real
There are 0 guests and 0 other users also viewing this topic