Article View: comp.lang.modula2
Article #1576Re: Parallel reading of a single file...help
From: Andreas Borchert
Date: Fri, 16 Oct 1992 08:55
Date: Fri, 16 Oct 1992 08:55
31 lines
1674 bytes
1674 bytes
In article <9210141424.AA16896@dinghy.cis.ohio-state.edu>, garlock@news.cis.ohio-state.edu (erin jon garlock) writes: > > Is there anyway I can parallel read a single file. What I see is something > like the following: > > VAR > afile, bfile: FILE; > . > . > Open(afile, 'generic',textMode,readOnly,ok); > bfile := afile; > ReadString(afile,string,ok); > ReadLn(afile,ok); > > Am I right to assume that afile is now on the second line of 'generic' and > bfile is still at the current first line?? I don't know which library you are using but if FILE is a pointer type, bfile is just another name for afile, so bfile would access the second line next. > If this incorrect, how can I do this... Usually, it should be possible to open a file twice (at least if both file openings are done read-only). -- _______________________________________________________________________________ Andreas Borchert, University of Ulm, SAI, D-W-7900 Ulm, Germany Internet: borchert@mathematik.uni-ulm.de
Technical Details
Message-ID:
<1992Oct16.085510.27178@informatik.uni-ulm.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!gatech!destroyer!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.belwue.de!theorie!titania.mathematik.uni-ulm.de!borchertReferences:
<9210141424.AA16896@dinghy.cis.ohio-state.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2 Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!gatech!destroyer!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.belwue.de!theorie!titania.mathematik.uni-ulm.de!borchert From: borchert@titania.mathematik.uni-ulm.de (Andreas Borchert) Subject: Re: Parallel reading of a single file...help Message-ID: <1992Oct16.085510.27178@informatik.uni-ulm.de> Sender: usenet@informatik.uni-ulm.de (Name for nntp-posting) Nntp-Posting-Host: titania.mathematik.uni-ulm.de Organization: University of Ulm, SAI References: <9210141424.AA16896@dinghy.cis.ohio-state.edu> Date: Fri, 16 Oct 92 08:55:10 GMT Lines: 31