Difference between revisions of "(File):read"

m
Line 6: Line 6:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|bytes|The number of bytes to read}}
+
{{param|number|bytes (all)|The number of bytes to read}}
 
=== Returns ===
 
=== Returns ===
 
{{param|string|contents|The contents of the read bytes}}
 
{{param|string|contents|The contents of the read bytes}}

Revision as of 23:23, 8 November 2012

Read a number of bytes from a file

Function

Synopsis

contents = File:read( bytes )

Arguments

number bytes (all)
The number of bytes to read

Returns

string contents
The contents of the read bytes

See Also


Other Languages