I'm just wondering if there's a way I can clear flashlog.txt everytime I compile so I don't have to keep doing this manually?

I'd imagine this would completely empty the log (untested) :

echo "" > "$TM_FLASH_LOG"

see the command 'Open Flash Log in Console' for an example of how to set TM_FLASH_LOG.

Simon, could we have a line of code that'll rewrite the flash log, commented out by default? Then we could un-comment it if we prefer that functionality.

Would adding it to 'Run' would be preferable to 'Build' ?