fileIO for C++ server