lincity-ng / lincity-ng

City Simulation Game
GNU General Public License v2.0
405 stars 82 forks source link

[question] Why not use std::fstream? #154

Open bufalo1973 opened 2 months ago

bufalo1973 commented 2 months ago

I've looked thru the code and all file management is based on FILE. Why not use std::ifstream and std::ofstream? I don't know if that can be done 100% but I find it easier to use than using pointers, fprintf, ...

uafr commented 2 months ago

Historical reasons. That code was working ~30 years ago, why change it?

bufalo1973 commented 2 months ago

I think (maybe I'm wrong) that getting rid of pointers (and their management) is a good idea. And I find clearer the way std::fstream works.

But it was just a question.

bufalo1973 commented 2 weeks ago

As of today, only 2 files use FILE: