Exemplo n.º 1
0
        /// <summary>
        /// Open an existing text file for writing
        /// </summary>
        /// <param name="directoryPath">
        /// The directory path where the file is located
        /// </param>
        /// <param name="fileName">
        /// The file name of the text file to be opened
        /// </param>
        public virtual void OpenForWrite(string directoryPath, string fileName)
        {
            string filePath = FileOps.CombinePath(directoryPath, fileName);

            OpenForWrite(filePath);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new text file if the specified file doesn't already exist
        /// </summary>
        /// <param name="directoryPath">The directory path where the file is located</param>
        /// <param name="fileName">The file name of the text file to be created</param>
        public virtual void CreateIfFileDoesNotExist(string directoryPath, string fileName)
        {
            string filePath = FileOps.CombinePath(directoryPath, fileName);

            CreateIfFileDoesNotExist(filePath);
        }