f$FileWrite (f$DateiSchreiben)
f$FileWrite (f$DateiSchreiben)
Write a text at the current position in a file previously opened for writing. A line break is not created. This can be done using the f$FileNewLine function. A file line can also be written with a command, using f$FileWriteLine.
Syntax: | Status = f$FileWrite( FileNo, Text ) | ||
| Argument | Type | Meaning |
| FileNo | Integer | File number |
| Text | String | Text to be produced |
Result: | Integer | Number of characters written | |
Example: | Status = f$FileWrite( FileNo, 'Smith' ) | ||
Related functions:
f$FileWriteLine | Write a line into a file (with line break) |
f$FileNewLine | Write a line break into a file |