struct->class
use class keyword if you need a distructor.
Although C++ does not enforce this the struct keyword should not
be used for anything that needs member functions and/or a destuctor.
Make FileData a proper class with private members while were at it.