🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #524

Re: Reading from a file

#524
From: Shankar Unni
Date: Fri, 01 Aug 2003 19:54
11 lines
1561 bytes
Oliver Young wrote:

> [...] my app would start reading
> from file before whole file was written into destination folder.

One basic idea: make your app ignore files with a specific ending (e.g.
.tmp), and make the user copy the file in using a two-step process:
first copy the file into /your/location/new-file.tmp, and once the copy
is done, rename new-file.tmp to new-file.

(Or other variations of this).
Technical Details
Message-ID: <3f2ac569$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!209.98.3.206.MISMATCH!hermes.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <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-01 13:02:06 PST
Date: Fri, 01 Aug 2003 12:54:18 -0700
From: Shankar Unni <shankar@cotagesoft.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Reading from a file
References: <3f2a1901$1@newsgroups.borland.com>
In-Reply-To: <3f2a1901$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.165.207.59
Message-ID: <3f2ac569$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059767657 64.165.207.59 (1 Aug 2003 12:54:17 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!209.98.3.206.MISMATCH!hermes.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail