The file or path doesn t exist. Методы string c#. file.writealltext(path, string.empty); или file.create(path).close();.