C++ how to find file version
Hi all. Im not sure if this is a beginner topic but this forum seemed most appropriate. How would you go about finding the file version and/or file size of a random access file? ( I mean during runtime)
Language: C++
Thanks in advance.
Nick
Which file version do you mean exactly? Generally, files don't carry version information at the level of file systems. But of course, specific file formats could do that (consider e.g. a text file, with the first line saying "Interpreter.Version = 0.3" or something like that). There are versioning file systems, but this isn't reliable information for your program (except you are writing some low level piece of software, that is targetted at ext3fs, for example; or some other specific file system).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement