Force write to write to console

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Sat Dec 6 23:07:30 UTC 2025


On Saturday, 6 December 2025 at 21:25:27 UTC, Brother Bill wrote:
> ```
> write("foo"); // writes to the console, but it doesn't display 
> yet.
> writeln;      // Now it displays, with a new line.
> ```
>
> How to force writing to the console after ```write("foo");```
>
> I am doing this for a tutorial video, and want the 
> ```write("foo");```
> to immediately write to the console.

make sure you flush stdout buffer


More information about the Digitalmars-d-learn mailing list