Core Function FileOpen

From Sputnik Wiki
Revision as of 09:05, 9 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
FileOpen( <filename>, <flag> )

Contents

Description

Opens a text file for reading or writing.

Parameters

filename

Name of the text file to open.

flag

Mode (read or write) to open the file in options are: "" = Open existing file or create a new one with this name "a" = Open existing file for appending data to it "w" = Create a new file for writing text to (Will delete an existing file of this name) "r" = Open existing file for reading (Will give exception if file does not exist)

Return Value

Success: Returns a file "handle" for use with subsequent file functions Failure: Returns 0 if error occurs.

Remarks

N/A

Example

 
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox