X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fdata-io.texi;h=79deb4a3ac6a79cea71707e3791b19af71442797;hb=80788c833f111c2e9aef3e25bdb44d6a56423313;hp=88577a48e2cc457ec755c8b5210a8960bb0ae0c6;hpb=546590abfc8b8f2d2b54bbceb6a4f29b7cd7d6c4;p=pspp diff --git a/doc/data-io.texi b/doc/data-io.texi index 88577a48e2..79deb4a3ac 100644 --- a/doc/data-io.texi +++ b/doc/data-io.texi @@ -573,6 +573,7 @@ For text files: FILE HANDLE @var{handle_name} /NAME='@var{file_name} [/MODE=CHARACTER] + [/ENDS=@{CR,CRLF@}] /TABWIDTH=@var{tab_width} [ENCODING='@var{encoding}'] @@ -619,9 +620,8 @@ The effect and syntax of @cmd{FILE HANDLE} depends on the selected MODE: @itemize @item -In CHARACTER mode, the default, the data file is read as a text file, -according to the local system's conventions, and each text line is -read as one record. +In CHARACTER mode, the default, the data file is read as a text file. +Each text line is read as one record. In CHARACTER mode only, tabs are expanded to spaces by input programs, except by @cmd{DATA LIST FREE} with explicitly specified delimiters. @@ -629,6 +629,11 @@ Each tab is 4 characters wide by default, but TABWIDTH (a @pspp{} extension) may be used to specify an alternate width. Use a TABWIDTH of 0 to suppress tab expansion. +By default, a file written in CHARACTER mode uses line feeds only at +ends of lines, which is customary on Unix-like system. Specify ENDS +as CR or CRLF to override the default. PSPP reads files using either +convention on any kind of system, regardless of ENDS. + @item In IMAGE mode, the data file is treated as a series of fixed-length binary records. LRECL should be used to specify the record length in