The function FileData_edit can not be non-static, it has to be global function (without a class) or static member function of the class.

I am sorry but I think as a part of learning, you should try fixing it from the information I am supplying.