Article View: borland.public.jbuilder.java.api
Article #526Re: Reading from a file
From: lredmond
Date: Sun, 03 Aug 2003 02:51
Date: Sun, 03 Aug 2003 02:51
17 lines
1726 bytes
1726 bytes
te best way to do this is to have the file end with a trailer record, before you read the entire file, seek to te\he end of the file and look for a trailer record, I usually put EOF00001123 which is the end of file plus the number of records, if you seek to the end and the EOF marker is not found then ignore the file "Oliver Young" <no@spam.please> wrote in message news:3f2a1901$1@newsgroups.borland.com... > > I have one app that runs 24h per day, checking one folder every 30 sec. > It should import into DB file that user can copy into one folder. The > problem is that file might be even 30 MB long, so my app would start reading > from file before whole file was written into destination folder. Is there > some workaround (to check if whole file was written)? > >
Technical Details
Message-ID:
<3f2c78b1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f2a1901$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,9b905ec90ba73073 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-08-02 19:56:20 PST From: "lredmond" <lredmond@nyc.rr.com> Newsgroups: borland.public.jbuilder.java.api References: <3f2a1901$1@newsgroups.borland.com> Subject: Re: Reading from a file Date: Sat, 2 Aug 2003 22:51:17 -0400 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.29.121.55 Message-ID: <3f2c78b1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059879089 24.29.121.55 (2 Aug 2003 19:51:29 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail