Open rudolfbyker opened 6 months ago
open(...).read(...) opens the file but does not close it
open(...).read(...)
Path(...).read_text() opens the file, reads the content and closes it properly.
Path(...).read_text()
open(...).read(...)
opens the file but does not close itPath(...).read_text()
opens the file, reads the content and closes it properly.