Project

General

Profile

$fread » History » Version 1

Per Amundsen, 08/12/2015 09:06 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$fread(name|N)*
4
5
Returns the next [[$crlf]] delimited line from an open file.
6
7
*Parameters*
8
9
name|N - Name of the file or the Nth file.
10
11
*Example*
12
13
<pre>
14
; Open a file.
15
/fopen Example Example.txt
16
17
; Add some text to the file.
18
/fwrite Example Hello World
19
20
; Read the next line.
21
//echo -ag Next line is: $fread(Example)
22
23
; Close the file.
24
/fclose Example
25
26
; Delete the file.
27
/remove Example
28
</pre>