Quantcast
Channel: Форум программистов и сисадминов Киберфорум
Viewing all articles
Browse latest Browse all 520103

System.IO.IOException: Синтаксическая ошибка в имени файла, имени папки или метке тома - C# .NET

$
0
0
:

using System;
using System.IO;

namespace ConsoleApp13
{
    class Program
    {
        static string path = @"‪D:\filename";
        static void Main(string[] args)
        {
            using (StreamReader sr = new StreamReader(path))
            {
                //...
            }

        }
    }
}

11 строка вызывает ошибку
Цитата:

System.IO.IOException: 'Синтаксическая ошибка в имени файла, имени папки или метке тома. : 'C:\Users\User\source\repos\ConsoleApp13\bin\Debug\netcoreap p3.1\‪D:\filename''
Как исправить?

Viewing all articles
Browse latest Browse all 520103

Trending Articles