fprintf() was replaced to fstream