Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Write and Flush
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1094 of 1102
Post > Topic >>

Write and Flush

by Alan <alan@[EMAIL PROTECTED] > Mar 14, 2008 at 03:45 PM

I am wondering whether or not a call to the Flush() procedure is 
required after a call to Write(Output) (assuming Output is tied to the 
screen)?

Example:
 
begin
  Write(Output, 'Enter a string: ');
  Flush(Output);     { do we need this here? }
  ReadLn(Input, s);
end.

In languages like C, this is the standard practice, but I can't find 
any mention about needing to do this in Pascal. I'm assuming we do 
because Output is still a text file...




 3 Posts in Topic:
Write and Flush
Alan <alan@[EMAIL PROT  2008-03-14 15:45:28 
Re: Write and Flush
Marco van de Voort <ma  2008-03-14 20:23:44 
Re: Write and Flush
Dr J R Stockton <jrs@[  2008-03-14 19:54:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:14:07 CDT 2008.