LocalFile.read Member

Will return an empty string if there is data, but it couldn't be read.

Syntax

object.read(max);

Arguments

ArgumentSummary
max

Returns

Remarks

See Also

Source Code

function fo_read(max)
{
if (!("inputStream" in this))
throw "file not open for reading.";
if (typeof max == "undefined")
max = this.inputStream.available();
try
{
var rv = this.inputStream.read(max);
return (rv != "") ? rv : null;
}
catch (ex)
{
return "";
}
}