TIpClient() > File handling |
Reads data from the internet connection to a local file.
:readToFile( <cFileName>, [<nFileAttr>], <nBytes> ) --> lSuccess
Attributes for binary file creation
Constant | Value | Attribute | Description |
---|---|---|---|
FC_NORMAL *) | 0 | Normal | Creates a normal read/write file |
FC_READONLY | 1 | Read-only | Creates a read-only file |
FC_HIDDEN | 2 | Hidden | Creates a hidden file |
FC_SYSTEM | 4 | System | Creates a system file |
*) default attribute |
Method :readToFile() transmits the specified number of bytes from the server to the local station and writes them into the file <cFileName>. Note that reading data requires a successful call to the :open() method for establishing the internet connection.
The method returns a logical value indicating success of the operation.
http://www.xHarbour.com