View Single Post
Old 12-09-2001, 08:53 PM  
aleck
Confirmed User
 
Join Date: Jan 2001
Posts: 940
actually if u r opening a file for writing it can be created automatically (depending on the mode tho)

mode may be any of the following:


'r' - Open for reading only; place the file pointer at the beginning of the file.

'r+' - Open for reading and writing; place the file pointer at the beginning of the file.

'w' - Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.

'w+' - Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.

'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.

'a+' - Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.



------------------

PlatinumBucks - amazing conversions, 65% recurring or $30+ per signup
BigPenis - $30 per signup from lifetime membership
aleck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote