This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:fopen [2017/04/06 12:00] jeff |
uphp:functions:fopen [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | |
- | [[fopen]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 19: | Line 15: | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
- | Attempt to open a file or stream for reading or writing, and return the file handle for future operations | + | Attempt to open a file (or special |
====Parameters==== | ====Parameters==== | ||
Line 37: | Line 32: | ||
* ' | * ' | ||
- | ====Return | + | ====Return |
- | Upon success it returns a file handle | + | < |
- | If the attempt to open the file or stream fails it will return 0 | + | The file handle may be used together with the other file functions that require a handle such as [[fgets()]], |
====Example==== | ====Example==== |