Using defer to close files

After opening a file-like handle, you can use defer to close the said handle.

#import "File";

file := file_open("my_file.txt");
// do something with the file.
defer file_close(*file);