Default File mode - Text, Special Code file - Binary, r+ - open the file in read and write mode, read() - It is a function to read complete content., readlines() - Read all the lines , read(5) - Will read 5 characters from file, wb - will open the file in write and binary mode, readline() - Read one line of content,

Data File Handling in Python

Leaderboard

Visual style

Options

Switch template

Continue editing: ?