Xavax C++ Library | Class Index FAQ Overview |
Constructor Summary |
File(const char* filename,
const char* mode)
Construct a File object. |
Method Summary | |
void
|
close()
Close the file. |
int
|
read(char* buffer, int count)
Read characters from a file. |
int
|
write(const char* buffer, int count)
Write characters to a file. |
Related Classes | |
Constructor Detail |
File(const char* name, const char* mode)
fopen
system call when the file is opened.
name
- the name of the file.mode
- the mode of the file.
Method Detail |
void close()
int read(char* buffer, int count)
count
characters
from the file into buffer
and return the number of characters read.
buffer
- the buffer for the characters read.count
- the maximum number of characters to read.int write(const char* buffer, int count)
count
characters
from buffer
to the file
and return the number of characters written.
buffer
- the array of characters to be written.count
- the number of characters to write.
Example Code |
Copyright © 2003 Xavax Inc. -- All Rights Reserved