+ 4

[TIP] File modes

"r" Read from file - YES Write to file - NO Create file if not exists - NO Truncate file to zero length - NO Cursor position - BEGINNING "r+" Read from file - YES Write to file - YES Create file if not exists - NO Truncate file to zero length - NO Cursor position - BEGINNING "w" Read from file - NO Write to file - YES Create file if not exists - YES Truncate file to zero length - YES Cursor position - BEGINNING "w+" Read from file - YES Write to file - YES Create file if not exists - YES Truncate file to zero length - YES Cursor position - BEGINNING "a" Read from file - NO Write to file - YES Create file if not exists - YES Truncate file to zero length - NO Cursor position - END "a+" Read from file - YES Write to file - YES Create file if not exists - YES Truncate file to zero length - NO Cursor position - END

17th Jun 2017, 8:16 PM
Batman1910
Batman1910 - avatar
1 Respuesta
+ 3
This can definitely come in handy. Thanks.
18th Jun 2017, 7:07 AM
Agnius Bartninkas
Agnius Bartninkas - avatar