File.WriteLn

Top  Previous  Next

 

Syntax

function File.WriteLn(F: pointer; Line: string): string

 

Alternative Names

ibec_fs_WriteLn

 

Description

Writes the string Line to the file-stream followed by the carriage return & newline control characters. To write a string without automatically putting these characters after it, use File.WriteString.

 

See also

File.ReadLn
File.ReadString
File.WriteString

 

Example

execute udsblock returns (valueout varchar(1024))

as

begin

  /* create a text file with UTF8 encoding */ 

  fs = File.Create('c:\data\utf8text.txt', __encUTF8);

  try

    /* write line of text */

    File.WriteLn(fs, 'this is a line of text followed by cr/nl');

  finally

    File.Close(fs);

  end

end