Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing to output without buffering in Julia

What is the way to print data on standard output without buffering? println buffers data and writes them all together.

Equivalently a command to empty the print buffer would be useful.

like image 788
user25004 Avatar asked Jun 01 '15 16:06

user25004


1 Answers

flush is the command to empty the print buffer for a given stream: https://docs.julialang.org/en/v1/base/io-network/#Base.flush

like image 187
ptb Avatar answered Sep 24 '22 12:09

ptb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!