User Tools

Site Tools


uphp:functions:fseek

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:fseek [2017/04/04 13:24]
jeff
uphp:functions:fseek [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"><html><span style="font-size:125%"></html>[[fseek]] +<well size="sm"><html> 
-<html>(+<span style="font-size:125%">fseek (
 <span style="color:green">int <span style="color:green">int
 <span style="color:blue">$handle<span style="color:black">, <span style="color:blue">$handle<span style="color:black">,
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 <html><b><span style="color:blue">$offset<span style="color:black"></b></html> will move forward, and a negative <html><b><span style="color:blue">$offset<span style="color:black"></b></html> will move in reverse+  * **1** - Seek from the **current position** (<html>a positive <b><span style="color:blue">offset<span style="color:black"></b> will move forward, and a negative <b><span style="color:blue">offset<span style="color:black"></b> will move in reverse</html>
-  * **2** - Seek from the **end of the file** (in reverse)((When using <html><b><span style="color:blue"><b>$whence</b><span style="color:black"></html>=2 to seek from the end of the file a positive <html><span style="color:blue">$offset<span style="color:black"></b></html> is used to move in reverse.))+  * **2** - Seek from the **end of the file** (in reverse)((<html>When using <b><span style="color:blue">whence<span style="color:black"></b>=2 to seek from the end of the file a positive <b><span style="color:blue">offset<span style="color:black"></b> is used to move in reverse.</html>))
  
 ====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 or socket 
 + 
 +[[feof()]] - Test if no more data is available in a file, stream or socket 
 + 
 +[[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
  
uphp/functions/fseek.1491312248.txt.gz · Last modified: 2021/09/13 05:56 (external edit)