Cam Deatherage Posted May 17, 2020 Share Posted May 17, 2020 I'm looking to create a html file using IronPython. I;ve tried the code below(no errors) but doesn't seem to work. Any IDeas withopen("testfile.html","w")asfile: file.write(htmlReport) Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted May 18, 2020 Share Posted May 18, 2020 I tried the following script and its working at my end: f = open('C:UserssgurnalkDesktophelloworld.html','wb') message = """ Hello World! """ f.write(message) f.close() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now