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