From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!tsdiag!scr1!jeffs From: jeffs@scr1.UUCP (Jeff Schnell) Newsgroups: comp.lang.ada Subject: direct_io and strings Keywords: ADA Message-ID: <349@scr1.UUCP> Date: 2 Jun 89 18:53:37 GMT Organization: CONCURRENT,OCEANPORT, NJ List-Id: 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