BExIS.IO.Transform.Output.DataWriter.CreateFile C# (CSharp) Метод

CreateFile() публичный Метод

public CreateFile ( string filepath ) : string
filepath string
Результат string
        public string CreateFile(string filepath)
        {
            string dicrectoryPath = Path.GetDirectoryName(filepath);
            createDicrectoriesIfNotExist(dicrectoryPath);

            try
            {
                if (!File.Exists(filepath))
                {
                    File.Create(filepath).Close();
                }

            }
            catch (Exception ex)
            {
                string message = ex.Message.ToString();
            }

            return filepath;
        }

Same methods

DataWriter::CreateFile ( string path, string filename ) : string