Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
GDScript
File I/O
Closing files
To close a file, use the
close
method:
file.close()
Comments
Add your comment
Post
Related
Basic Syntax
Variable Typing
Control Structures
Functions
Classes and Objects
Signals and Events
Error Handling
File I/O
Useful Tips and Tricks