Write line to .html

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
conjure
Pro Scripter
Posts: 64
Joined: Thu Jan 12, 2012 3:05 pm

Write line to .html

Post by conjure » Fri Sep 30, 2016 4:24 pm

Is it possible to write a line to html?
WriteLn send the code at the end of the code.
I want to write a line at line 1400.
Thank you for your time..

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Write line to .html

Post by Marcus Tettmar » Mon Oct 03, 2016 2:22 pm

HTML is just text. You cannot write into the middle of a text file. But you can read in and write out. What you do is you read your data in, modify the part you want (insert a line) then write ALL of it out to a new file. You can either delete the old file and write with the new filename, or write to a new file, then delete the old, rename the new.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts