This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:fseek [2017/04/04 13:25] jeff |
uphp:functions:fseek [2017/05/11 23:02] jeff |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 29: | Line 29: | ||
* **0** - Seek from the **start of the file** | * **0** - Seek from the **start of the file** | ||
- | * **1** - Seek from the **current position** (a positive | + | * **1** - Seek from the **current position** (< |
- | * **2** - Seek from the **end of the file** (in reverse)((When using < | + | * **2** - Seek from the **end of the file** (in reverse)((< |
====Return Values==== | ====Return Values==== | ||
Line 53: | Line 53: | ||
====See Also==== | ====See Also==== | ||
- | |||
- | [[ftell()]] - Return the current position of a file read/write pointer | ||
[[fopen()]] - Open a file for reading or writing | [[fopen()]] - Open a file for reading or writing | ||
- | [[fread()]] - Return bytes from a file or stream | + | [[fseropen()]] - Open the serial port at the specified baud rate with optional parameters |
- | [[fgets()]] - Return a single line from a file or stream, with optional size limit | + | [[f485open()]] - Open the RS-485 port at the specified baud rate and parity |
- | [[fwrite()]] - Write data to a file or stream | + | [[fsockopen()]] - Open an internet socket connection with optional timeout |
+ | |||
+ | [[fread()]] - Read bytes from a file, stream or socket | ||
+ | |||
+ | [[fgets()]] - Return a single line from a file, stream or socket, with optional size limit | ||
+ | |||
+ | [[fwrite()]] - Write data to a file, stream | ||
+ | |||
+ | [[feof()]] - Test if no more data is available in a file, stream | ||
+ | |||
+ | [[filesize()]] - Return the size of a file, or the number of unread bytes in a stream or socket | ||
+ | |||
+ | [[ftell()]] - Return the current position of a file read/write pointer | ||
[[fclose()]] - Close a file, stream or socket | [[fclose()]] - Close a file, stream or socket | ||