Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update OpenFile to support reading and writing files
This commit updates the OpenFile function in pkg/utils/io.go to support both reading and writing files. Previously, it only allowed writing to files. The change modifies the file opening flags from os.O_CREATE|os.O_WRONLY|os.O_APPEND to os.O_CREATE|os.O_RDWR|os.O_APPEND, enabling both read and write access to the file. Refactor the OpenFile function to support reading and writing files
- Loading branch information