Is there any hand coded class or VC++ plugin available that is same as PHP’s SplFileObject?
Please see the question https://stackoverflow.com/questions/10650864/fetching-nth-line-of-a-file/10650864#10650864. I want to achieve this using C++
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.
Not sure why you want to use it for, what about iostreams or boost::filesystem?
http://msdn.microsoft.com/de-de/library/22z6066f%28v=vs.100%29
http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/index.htm
Update (adding a code example after reading the comments):
Something like this then?