- Open the file for read mode only.
- File pointer places at beginning of the file.
- It never creates a new file if file doesn't exists & doesn't truncates content of the existed file.
|
- Open the file for read and write mode.
- File pointer places at beginning of the file.
- It never creates a new file if file doesn't exists & doesn't truncates content of the existed file. .
|
- Open the file for write mode.
- File pointer places at beginning of the file.
- It creates a new file if file doesn't exists & truncates the content of file to 0 length.
|
- Open the file for read and write mode.
- File pointer places at beginning of the file.
- It creates a new file if file doesn't exists & truncates the content of the file to 0 length.
|
- Open the file for write mode only.
- File pointer places at ending of the file.
- It creates a new file if file doesn't exists & doesn't truncates existed file content to 0 length.
|
- Open the file for read and write mode.
- File pointer places at ending of the file.
- It creates a new file if file doesn't exists & doesn't truncates existed file content to 0 length.
|
No comments:
Post a Comment