method description read([size]return data from file as stringwith optional size argument indicating the number of bytes to read readlines([size]return list of lines in the filewith optional size argument readlines([size]return list of lines (as stringsin the file write(strwrite passed string to file writelines(stringswrite passed sequence of strings to the file close(close the handle flush(flush the internal / buffer to disk seek(posmove to indicated file position (integertell(return current file position as integer closed true is the file is closed appendixpython language essentials www it-ebooks info