Which Linux class is equivalent to Windows MFC class CStdioFile?
I am porting some class to linux.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no such Linux class equivalent. MFC does not exist on Linux. (I thought it had disappeared on Windows btw.)
Your best bet to have as close as possible equivalent of MFC classes on Linux is to use wxWidgets. It has a for example a
wxFFileclass for buffered I/O.Otherwise, use the C++ class
std::iostream. The interface is really different fromCFilethough.