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++
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++
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?