2,732
edits
Red Leader (talk | contribs) (→open()) |
Red Leader (talk | contribs) m (→open()) |
||
Line 126: | Line 126: | ||
{{!-}} | {{!-}} | ||
{{!}} <code>a+</code> | {{!}} <code>a+</code> | ||
{{!}} Opens a file for input and output operations. Output operations will append data to the end of the file. Input operations are affected by {{func link|seek}}, but output operations will move the position back to the end of the file. The file is created if it does not exist. | {{!}} Opens a file for input and output operations. Output operations will append data to the end of the file. Input operations are affected by {{func link|seek()}}, but output operations will move the position back to the end of the file. The file is created if it does not exist. | ||
{{!-}} | {{!-}} | ||
{{!}} <code>rb</code> | {{!}} <code>rb</code> | ||
Line 144: | Line 144: | ||
{{!-}} | {{!-}} | ||
{{!}} <code>a+b</code> ''or'' <code>ab+</code> | {{!}} <code>a+b</code> ''or'' <code>ab+</code> | ||
{{!}} Opens a file for input and output operations, treating it as a binary file. Output operations will append data to the end of the file. Input operations are affected by {{func link|seek}}, but output operations will move the position back to the end of the file. The file is created if it does not exist. | {{!}} Opens a file for input and output operations, treating it as a binary file. Output operations will append data to the end of the file. Input operations are affected by {{func link|seek()}}, but output operations will move the position back to the end of the file. The file is created if it does not exist. | ||
{{!}}} | {{!}}} | ||
|param1 = path | |param1 = path |