This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:fseek [2017/03/31 12:14] jeff created |
uphp:functions:fseek [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======fseek====== | ======fseek====== | ||
+ | |||
< | < | ||
Line 6: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
</ | </ | ||
Line 21: | Line 22: | ||
====Parameters==== | ====Parameters==== | ||
- | < | + | <html><b>< |
- | < | + | <html><b>< |
- | < | + | <html><b>< |
* **0** - Seek from the **start of the file** | * **0** - Seek from the **start of the file** | ||
- | * **1** - Seek from the **current position** | + | * **1** - Seek from the **current position** |
- | * **2** - Seek from the **end of the file** (in reverse) | + | * **2** - Seek from the **end of the file** (in reverse)((< |
====Return Values==== | ====Return Values==== | ||
+ | |||
None | None | ||
====Example==== | ====Example==== | ||
+ | |||
<code php> | <code php> | ||
<? | <? | ||
Line 53: | Line 56: | ||
[[fopen()]] - Open a file for reading or writing | [[fopen()]] - Open a file for reading or writing | ||
- | [[fread()]] - Return | + | [[fseropen()]] - Open the serial port at the specified baud rate with optional parameters |
+ | |||
+ | [[f485open()]] - Open the RS-485 port at the specified baud rate and parity | ||
+ | |||
+ | [[fsockopen()]] - Open an internet socket connection with optional timeout | ||
+ | |||
+ | [[fread()]] - Read bytes from a file, stream | ||
+ | |||
+ | [[fgets()]] - Return a single line from a file, stream | ||
+ | |||
+ | [[fwrite()]] - Write data to a file, stream or socket | ||
+ | |||
+ | [[feof()]] - Test if no more data is available in a file, stream or socket | ||
- | [[fgets()]] - Return | + | [[filesize()]] - Return |
- | [[fwrite()]] - Write data to a file or stream | + | [[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 | ||