Solved

fflush() function

Posted on 1998-05-27
1
1,088 Views
Last Modified: 2012-08-13
when I print some texts to stdout using print function, it
seems that I have to put "\n" at the end of string in order
for the texts to flush to the screen.  Is there a function
to flush the buffer to the screen such as fflush in "C"?

Thanks

--
Hiep
0
Comment
Question by:hdo120497
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 10 total points
Comment Utility
$|=1;

# keep in mind that if you print to stdout, stderr, the OS's I/O
# system has a buffer too which needs to be flushed

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now