#!python """ fileIO.read([int n]) -> string fileContent [en] method reads and returns n characters from file. Inner file pointer is moved by n chars. If n is not given method reads chars to the end of file. [pl] metoda odczytuje i zwraca n znaków z pliku i przesuwa wskaźnik do n znaku. Jeśli n nie jest podane czytane są znaki do końca pliku """ #file.txt: abcdefghijkl f = open('file.txt') print f.read(3) #abc print f.read(1) #d print f.read(5) #efghi f.close() f = open('file.txt') print f.read(3) #abc print f.read() #defghijkl f.close()