[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Unix' (#rtl)


Wait for event on text file.


Source position: unix.pp line 104

function SelectText(

  var T: Text;

  TimeOut: ptimeval


function SelectText(

  var T: Text;

  TimeOut: cint



SelectText executes the FpSelect call on a file of type Text. You can specify a timeout in TimeOut. The SelectText call determines itself whether it should check for read or write, depending on how the file was opened : With Reset it is checked for reading, with Rewrite and Append it is checked for writing.


See #rtl.baseunix.FpSelect. SYS_EBADF can also mean that the file wasn't opened.

See also



Wait for events on file descriptors

Documentation generated on: Mar 17 2017