fnew_lineT_fnew_lineFnewLineFnewLinefnew_line (算子名称)
名称
fnew_lineT_fnew_lineFnewLineFnewLinefnew_line — Write a line break and clear the output buffer.
参数签名
描述
该算子 fnew_linefnew_lineFnewLineFnewLineFnewLinefnew_line writes a line break into the output
file defined by the handle FileHandleFileHandleFileHandleFileHandlefileHandlefile_handle.
The input file must have been opened with open_fileopen_fileOpenFileOpenFileOpenFileopen_file in text format.
The call of fnew_linefnew_lineFnewLineFnewLineFnewLinefnew_line also empties possibly retained data from the
output buffer into the file (see fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteStringfwrite_string and
set_system(::'flush_file', <boolean-value>:)set_system("flush_file", <boolean-value>)SetSystem("flush_file", <boolean-value>)SetSystem("flush_file", <boolean-value>)SetSystem("flush_file", <boolean-value>)set_system("flush_file", <boolean-value>)).
Which characters are written as line break depends on the operating system:
under Windows the sequence
'\r\n'"\r\n""\r\n""\r\n""\r\n""\r\n"
(carriage return + line feed) is used as the standard line break,
under Linux just '\n'"\n""\n""\n""\n""\n" (line feed).
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
FileHandleFileHandleFileHandleFileHandlefileHandlefile_handle (input_control) file → HFile, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
File handle.
例程 (HDevelop)
fwrite_string(FileHandle,'Good Morning')
fnew_line(FileHandle)
例程 (C)
fwrite_string(FileHandle,"Good Morning");
fnew_line(FileHandle);
例程 (HDevelop)
fwrite_string(FileHandle,'Good Morning')
fnew_line(FileHandle)
例程 (HDevelop)
fwrite_string(FileHandle,'Good Morning')
fnew_line(FileHandle)
例程 (HDevelop)
fwrite_string(FileHandle,'Good Morning')
fnew_line(FileHandle)
结果
If an output file is open and it can be written to the file,
该算子 fnew_linefnew_lineFnewLineFnewLineFnewLinefnew_line
返回值 2 (
H_MSG_TRUE)
. Otherwise, an exception is raised.
可能的前置算子
fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteStringfwrite_string
参考其它
fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteStringfwrite_string
模块
Foundation