Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update file reading in proxy_slave.cpp
Changed the method to read data from the file in the "proxy_slave.cpp" file. Refactored the read_data function to use std::ifstream instead of FILE for readability and to handle exceptions better. Now the function directly returns the data read from the file instead of taking a reference. It's also been changed to throw an exception if the file fails to open or read, making error handling more explicit. This approach is more robust and easier to debug.
- Loading branch information