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