File management with class.