OutFile [Deprecated]
Name
OutFile -- A class to perform file output.
Description
Deprecated:
Warning: the error return behavior of these methods is fragile, only end of file is reported as an error. It is probably not wise to use use this inteface unless your text processing needs are very simple.
This class is intended to simplify output file-I/O in Swarm. It essentially deals with the detailed file opening and closing routines thus alleviating the need for C file I/O procedure calls.
Methods
Phase: Creating
+
create: (id <Zone>)
aZone withName: (const char *)
theName for backward compatibility
+
create: (id <Zone>)
aZone setName: (const char *)
theName The create:setName: method opens a file named theName and creates an Outfile object.
Phase: Using
- (void)
drop The drop method closes the open file. This method must be called to close the file.
-
putTab The putTab method writes a tab into the open file.
-
putNewLine The putNewline method writes a newline into the open file.
-
putChar: (char)
aChar The putChar: method takes an instance of type char and writes it into the open file.
-
putFloat: (float)
aFloat The putFloat: method takes an instance of type float and writes it into the open file.
-
putDouble: (double)
aDouble The putDouble: method takes an instance of type double and writes it into the open file.
-
putUnsignedLong: (unsigned long)
anUnsLong The putUnsignedLong: method takes an instance of type unsigned long and writes it into the open file.
-
putLong: (long)
aLong The putLong: method takes an instance of type long and writes it into the open file.
-
putUnsigned: (unsigned)
anUnsigned The putUnsigned: method takes an instance of type unsigned and writes it into the open file.
-
putInt: (int)
anInt The putInt: method takes an instance of type int and writes it into the open file.
-
putString: (const char *)
aString The putString: method takes an instance of type string and writes it into the open file.