Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file handling to prevent ValueError and terminal crashes
- Replaced manual file open/close with `with` statement to ensure proper resource management. - Removed redundant file read operation after the file was closed. - Resolved `ValueError: I/O operation on closed file` and addressed terminal crashing issue during execution.
- Loading branch information