4.32.1 Writef
- [deprecated]writef(+Atom)
- Equivalent to writef(Atom, []).See writef/2 for details.
- [deprecated]writef(+Format, +Arguments)
- Formatted write. Format is an atom whose characters will be 
printed.
Format may contain certain special character sequences which 
specify certain formatting and substitution actions. Arguments 
provides all the terms required to be output.
Escape sequences to generate a single special character: \nOutput a newline character (see also nl/[0,1]) \lOutput a line separator (same as \n)\rOutput a carriage return character (ASCII 13) \tOutput the ASCII character TAB (9) \\The character \\%The character %\nnnwhere <nnn> is an integer (1-3 digits); the character with code <nnn> is output (NB : <nnn> is read as decimal) Note that \l,\nnnand\\are interpreted differently when character escapes are in effect. See section 2.16.1.3.Escape sequences to include arguments from Arguments. Each time a % escape sequence is found in Format the next argument from Arguments is formatted according to the specification. %tprint/1 the next item (mnemonic: term) %wwrite/1 the next item %qwriteq/1 the next item %dWrite the term, ignoring operators. See also write_term/2. Mnemonic: old Edinburgh display/1 %pprint/1 the next item (identical to %t)%nPut the next item as a character (i.e., it is a character code) %rWrite the next item N times where N is the second item (an integer) %sWrite the next item as a String (so it must be a list of characters) %fPerform a ttyflush/0 (no items used) %NcWrite the next item Centered in N columns %NlWrite the next item Left justified in N columns %NrWrite the next item Right justified in N columns. N is a decimal number with at least one digit. The item must be an atom, integer, float or string. 
- [deprecated]swritef(-String, +Format, +Arguments)
- Equivalent to writef/2, 
but ``writes'' the result on String instead of the current 
output stream. Example:
?- swritef(S, '%15L%w', ['Hello', 'World']). S = "Hello World" 
- [deprecated]swritef(-String, +Format)
- Equivalent to swritef(String, Format, []).