Fiddlerscript: How to write/append a text file?

1,264 views
Skip to first unread message

benef...@gmx.com

unread,
Jun 29, 2014, 9:37:08 PM6/29/14
to httpf...@googlegroups.com
I have just enough knowledge to hack around with Fiddler custom.js, but I can't seem to find the right javascript objects that will let me simply append a string to a text file.

Lil help?  TIA.


EricLaw

unread,
Jun 30, 2014, 10:55:32 AM6/30/14
to httpf...@googlegroups.com
Add

   #import System.IO

at the top. Then:

        var sw = File.AppendText("C:\\temp\\whatever.txt");
            sw.WriteLine("This");
            sw.WriteLine("is Extra");
            sw.WriteLine("Text");
         sw.Close();
Reply all
Reply to author
Forward
0 new messages