2,733
edits
Red Leader (talk | contribs)  (→open())  | 
				Red Leader (talk | contribs)   (→open():  More doc)  | 
				||
| Line 110: | Line 110: | ||
|param1text = Full path to the file as a string.  | |param1text = Full path to the file as a string.  | ||
|param2 = mode  | |param2 = mode  | ||
|param2text = Optional mode parameter. Defaults to "rb".  | |param2text = Optional mode parameter. See the table below. Defaults to "rb".  | ||
|example1 =    | |example1 =    | ||
}}  | }}  | ||
{| class="wikitable"  | |||
! String !! Meaning  | |||
|-  | |||
| r || Open for input (reading) operations as a text file. The file must exist.  | |||
|-  | |||
| w || Creates a new file for output (writing) operations. If the file already exists, its contents will be cleared first.  | |||
|}  | |||
=== read(filehandle, buf, len) ===  | === read(filehandle, buf, len) ===  | ||