functionwriteLine
Low level write of line including to file
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
(string, endOfFile) = readLine(fileName, lineNumber)
Description
Function readLine(..) opens the given file, reads enough of the content to get the requested line, and returns the line as a string. Lines are separated by LF or CR-LF; the returned string does not contain the line separator.
If lineNumber > countLines(fileName), an empty string is returned and endOfFile=true. Otherwise endOfFile=false.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | Name of the file that shall be read | |
| String | line | Line of text |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | status | Status |