I have a quistion that I couldn't find answer to on the web since its very specific:

string time = DateTime.Now.ToString("dd/MM/yyyy") + ".csv";
if (FileUpload1.HasFile)
{
    try
    {
        if (File.Exists(@"C:\Users\user\Documents\פרויקט\היסטוריה\" + time )) 
        { 
        }
        else
        {
            FileUpload1.SaveAs(@"C:\Users\user\Documents\פרויקט\היסטוריה\" + time);
        }
        string[] shorot = System.IO.File.ReadAllLines(@"C:\Users\user\Documents\פרויקט\היסטוריה\" + time);

Now I am trying to save this .Csv file only in a new folder with a new name (the name is the date) some how the file won't save.

Related posts

Recent Viewed