﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2309	Cannot read numbers from a file	paul	Martin Sjölund	"With OMEdit i wanted to execute the following model:

{{{#!mo
model ReadNumber
  import Streams = Modelica.Utilities.Streams;
  import Strings = Modelica.Utilities.Strings;
  constant String filename = ""<pathtofile>/numberfile.txt"";
  Integer lineno = 1;
  String line;
  Boolean eof;
  Real value;
algorithm
  (line, eof) := Streams.readLine( filename, lineno );
  value := Strings.scanReal( line );
end ReadNumber;
}}}

The content of numberfile.txt in the path <pathtofile> is
{{{
1.1
2.1
3.1
}}}

OMEdit apparently exectutes all steps including simulation. There is no error message. However, the plot shows no variables to be displayed, as if no simulation had been done.

I am using OpenModelica 1.9.0 beta4+dev (r16769). The two original files have been attached."	defect	closed	high	1.12.0	Code Generation	trunk	worksforme		Willi Braun
