Aqueduct.Appia.Host.Specs.StepDefinitions.CreateWebsiteFile C# (CSharp) Method

CreateWebsiteFile() protected method

protected CreateWebsiteFile ( string filePath, string contents ) : void
filePath string
contents string
return 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);
            }
        }