Aqueduct.Appia.Host.Specs.StepDefinitions.CreateWebsiteFile C# (CSharp) 메소드

CreateWebsiteFile() 보호된 메소드

protected CreateWebsiteFile ( string filePath, string contents ) : void
filePath string
contents string
리턴 void
        protected void CreateWebsiteFile(string filePath, string contents)
        {
            string fullPath = Path.Combine(_websitePath, filePath);
            Directory.CreateDirectory(Path.GetDirectoryName(fullPath));
            using (StreamWriter writer = File.CreateText(fullPath))
            {
                writer.Write(contents);
            }
        }