python_files
python_files
BASIC STUFF
Action
Read Mode( "r" ): Default value. Opens a file for reading, error if the file does not exist.
Append Mode( "a" ): Opens a file for appending, creates the file if it does not exist.
Write Mode( "w" ): Opens a file for writing, creates the file if it does not exist.
Create Mode( "x" ): Creates the specified file, returns an error if the file exists.
Type of file
WRITING TO A FILE
DELETING FILES
# deleting a file
import os
os.remove('hello.txt')
SilicoFlare
silicoflare@gmail.com
@silicoflare