Torque2D Reference
Public Types | Public Member Functions | List of all members
FileStream Class Reference

(Depreciated) Wrapper of C file stream for input or output. More...

#include <filestream.h>

+ Inheritance diagram for FileStream:

Public Types

typedef char Ch
 Character type. Only support char. More...
 

Public Member Functions

 FileStream (FILE *fp)
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
void Put (char c)
 
void Flush ()
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Detailed Description

(Depreciated) Wrapper of C file stream for input or output.

This simple wrapper does not check the validity of the stream.

Deprecated:
{ This was only for basic testing in version 0.1, it is found that the performance is very low by using fgetc(). Use FileReadStream instead. }

Member Typedef Documentation

typedef char Ch

Character type. Only support char.

Constructor & Destructor Documentation

FileStream ( FILE *  fp)
inline

Member Function Documentation

void Flush ( )
inline
char Peek ( ) const
inline
void Put ( char  c)
inline
char* PutBegin ( )
inline
size_t PutEnd ( char *  )
inline
char Take ( )
inline
size_t Tell ( ) const
inline

The documentation for this class was generated from the following file: