var log_empty = fso.CreateTextFile(dir_emp_log + "\\ext_" + date_empt + "_log.txt", 2, 0); //Создаем empty лог-файл log_empty.Close(); var log_empty = fso.OpenTextFile(dir_emp_log + "\\ext_" + date_empt + "_log.txt", 8, true, -2);