How can I write two simple cross platform (Linux, Windows) functions for reading text file, and determine if some file exists?
I don’t want to use a big library like Boost.IO for that. It’s a very small plugin for some software and I don’t think it’s neccsary.
Thanks.
The standard library should be sufficient.
accesswill tell you if a file exists, and (if it’s there) you can read with a normalstd::ifstream.