Python-Ref
>
Using files
>
Reading and writing files
Hlavní stránka
Aplikované XML technologie
Počítačové zpracování chemických struktur
Skriptovací jazyky
GUI v Pythonu
Klíčová slova
Funkce
Moduly
Search
Reading and writing files
5 příkladů, 7 kousků kódu, 40 řádek kódu
Reading a file
How to read the content of a file all at once.
Reading a file line by line
How to read the content of a file one line at a time.
Reading a file line by line, different approach
Writing files
How to create a file and fill it with content.
Appending to a file