Python File Truncate, There are three main types of I/O: text I/O, binary I/O and raw I/O.