Script-Runner file writing

Daniel Burke January 17, 2018

When writing to a file using the following code:

outputexample.png

My code writes to a file, but only writes the last line of the output, whereas if i was to change:

file.write

to:

log.error

All of the output is executed (300 lines +), so I was wondering how I could write all of the text to the file, and not just the last line?  

1 answer

0 votes
Daniel Burke January 17, 2018

Actually, I realized I was writing inside a loop - sorry! 

Daniel Burke January 17, 2018

actually nope, still not working

Vytautas Chamutovskij April 28, 2020

Did you closed the file after write?

Jordan McCombs March 5, 2021

Hey Daniel, were you able to find an answer to this?

Suggest an answer

Log in or Sign up to answer