[comp.lang.ada] direct_io and strings

jeffs@scr1.UUCP (Jeff Schnell) (06/03/89)

  I have a problem with direct_io and strings.  I have text files on a
unix system which I need to be able to backwards in the file, thats
why I am using direct_io.  The problem I have is read wants to read
the number of elements in my string object which is 80 bytes and on
the unix system the files are not fixed record size so read keeps
reading past eol.  So then I can use text_io and use get_line and
that works but I go back a few records as I can in direct_io.  I know
I could be real crude and do a reset and then do get_line n times to
reposition the file.   Any suggestion would be appreciated.  Want
I am working is a menu system which allows viewing of text files and
it also can execute command/shell scripts.  The code is written on
a Concurrent Computer 3200 system and moved to a Masscomp system.

  Please email me and I will merge it all if interest.  Also does anybody
use strings and direct_io out there.  I ask this because I have a lot of
books on ADA and there are very few examples on direct_io.
-- 
Jeffrey J. Schnell   System Support Eng.      | Concurrent Computer Corp.
FAX:  201-870-4249   Ph: (201) 870-4120       | 2 Crescent Place, M/S 117
UUCP: ucbvax!rutgers!petsd!tsdiag!scr1!jeffs  | Oceanport NJ, 07757