@@ -34,10 +34,26 @@ * \param mode The mode in which the file should be opened as a string * \return A new autoreleased OFFile */ + fileWithPath: (OFString*)path andMode: (OFString*)mode; + +/** + * \return An OFFile singleton for stdin + */ ++ standardInput; + +/** + * \return An OFFile singleton for stdout + */ ++ standardOutput; + +/** + * \return An OFFile singleton for stderr + */ ++ standardError; + /** * Changes the mode of a file. * * Not available on Windows. * @@ -130,5 +146,9 @@ */ - (size_t)writeNItems: (size_t)nitems ofSize: (size_t)size fromBuffer: (const char*)buf; @end + +@interface OFFileSingleton: OFFile +- initWithFilePointer: (FILE*)fp; +@end