Ok in my text file, I put the file location. In my program, I called it with

"output=line + string.Format("{0}{1}Metdata_MT-{2:yyyy-MM-dd}.txt");

I get the error message FormatException was unhandled. Whats wrong here?