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

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

public CreateFile ( string path, string filename ) : string
path string
filename string
Результат string
        public string CreateFile(string path, string filename)
        {
            createDicrectoriesIfNotExist(path);

            string dataPath = Path.Combine(path, filename);

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

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

            return dataPath;
        }

Same methods

DataWriter::CreateFile ( string filepath ) : string