/* related posts with thumb nails */

IO Stream Functions:

Class
Function
Meaning
istream
get(ch)
Reads one character into ‘ch’
get(str,max)
Reads “max” character into ‘str’
getline(str,max)
Reads “max” character into ‘str’
read(char*,int)
reads objects from a stream
seekg(long,whence)
Moves to the specified position
tellg(long)
Returns the position of the stream
ostream
put(ch)
Writes character into a stream
write(char*,int)
Writes objects into a stream
seekp(long,whence)
Moves to the specified position
tellp(long)
Returns the position of the stream
ifstream
open(file)
Opens a file
ofstream
open(file)
Opens a file
fstreambase
close()
Closes a file
Related Topics:

0 comments:

Post a Comment