using const string & in constructor of struct file