save filename to file