C++ read from file


I know that this is not question much about arduino but I am making an arduino library and in function I want to read content of file. Path of file is included. How can I do that? What would be the code for this?

Thanks, TR

Where is the file located ?

Sorry, it will be writed by user

TomasRoj: Sorry, it will be writed by user

Yes, but where it be located ? On the PC ? On an SD card ? Where ? How big will it be ? What will it contain ?

Are you not familiar with Google? Searching "c++ file i/o" will turn up dozens of tutorials...

Regards, Ray L.