Difference between revisions of "FileMode"

m
Line 4: Line 4:
 
;w: Open a file for write.
 
;w: Open a file for write.
 
;a: Open a file for append.
 
;a: Open a file for append.
 +
;c: Do not open a file (represents a closed file.)
 
== See Also ==
 
== See Also ==
 
* [[parent::File]]
 
* [[parent::File]]

Revision as of 03:47, 19 July 2013

The different modes you can open a file in.

Constants

r
Open a file for read.
w
Open a file for write.
a
Open a file for append.
c
Do not open a file (represents a closed file.)

See Also


Other Languages