* is there any sample code for detecting key strokes while writing to a .txt file?
@ 2014-07-09 13:13 torralbaduran
2014-07-09 13:33 ` J-P. Rosen
0 siblings, 1 reply; 2+ messages in thread
From: torralbaduran @ 2014-07-09 13:13 UTC (permalink / raw)
Hi,
I'm having problems writing to a file while
the user inputs data from the keyboard.
Is there any sample code so I ca check it out?
Thank you very much
Angel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: is there any sample code for detecting key strokes while writing to a .txt file?
2014-07-09 13:13 is there any sample code for detecting key strokes while writing to a .txt file? torralbaduran
@ 2014-07-09 13:33 ` J-P. Rosen
0 siblings, 0 replies; 2+ messages in thread
From: J-P. Rosen @ 2014-07-09 13:33 UTC (permalink / raw)
Le 09/07/2014 15:13, torralbaduran@gmail.com a écrit :
> Hi,
> I'm having problems writing to a file while
> the user inputs data from the keyboard.
>
> Is there any sample code so I ca check it out?
>
We certainly need more info about what you are trying to achieve in
order to help you.
However, as a wild guess, note that the only way to achieve non-blocking
read is by using get_immediate; all other input procedures (like any
procedure call for that matter) are not exited until terminated;
therefore, if you use Get_Line, your program will not proceed until the
user has entered a line.
Simultaneous execution may be obtained by using multiple tasks, but the
behaviour of IOs from multiple tasks is system-dependent.
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-09 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 13:13 is there any sample code for detecting key strokes while writing to a .txt file? torralbaduran
2014-07-09 13:33 ` J-P. Rosen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox