Arbeiten mit Dateien Flashcards

1
Q

Wie heisst die Funktion zum Öffnen einer Datei?

A

open(file, mode)

“r” - Read - Default value.
“a” - Append - Opens a file for appending, creates the file if it does not exist
“w” - Write - Opens a file for writing, creates the file if it does not exist
“x” - Create - Creates the specified file, returns an error if the file exist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly