SyntaxFix
Write A Post
Hire A Developer
Questions
Generally, instances of classes that deal with I/O should be closed after you're finished with them. So at the end of your code you could add in.close().
in.close()