Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows access to files on remote systems that use Internet protocols.
class CInternetFile : public CStdioFile
Members
Protected Constructors
Name |
Description |
---|---|
Constructs a CInternetFile object. |
Public Methods
Name |
Description |
---|---|
Closes the file, ignoring all warnings and errors. |
|
Closes a CInternetFile and frees its resources. |
|
Flushes the contents of the write buffer and makes sure the data in memory is written to the target machine. |
|
Returns the size of the file. |
|
Reads the number of specified bytes. |
|
Reads a stream of characters. |
|
Repositions the pointer in an open file. |
|
Sets the size of the buffer where data will be read. |
|
Sets the size of the buffer where data will be written. |
|
Writes the number of specified bytes. |
|
Writes a null-terminated string to a file. |
Public Operators
Name |
Description |
---|---|
A casting operator for an Internet handle. |
Protected Data Members
Name |
Description |
---|---|
A handle to a file. |
Remarks
Provides a base class for the CHttpFile and CGopherFile file classes. You never create a CInternetFile object directly. Instead, create an object of one of its derived classes by calling CGopherConnection::OpenFile or CHttpConnection::OpenRequest. You also can create a CInternetFile object by calling CFtpConnection::OpenFile.
The CInternetFile member functions Open, LockRange, UnlockRange, and Duplicate are not implemented for CInternetFile. If you call these functions on a CInternetFile object, you will get a CNotSupportedException.
To learn more about how CInternetFile works with the other MFC Internet classes, see the article Internet Programming with WinInet.
Inheritance Hierarchy
CInternetFile
Requirements
Header: afxinet.h