Re: creating/copying files..
- From: Frances <fdr58@xxxxxxxxx>
- Date: 29 Dec 2005 03:13:17 +0100
Carl wrote:
Roedy Green wrote:
On Wed, 28 Dec 2005 22:47:23 GMT, Carl <_Nospam_@xxxxxxxxxxxx> wrote, quoted or indirectly quoted someone who said :
Are you sure about that? It seems to work just fine for me.
All I am saying in that new File does not create a file. It is just a handle to a file. createNewFile or createTempFile will create a file though if all you want is an empty file. If you plan to write something in it, there is no point in createNewFile. The file gets created as needed as a side effect of writing.
Roedy,
Ok, I understand. I was confused by your previous post that said "You can create with FileOutputStream and writing no bytes. Just close." that the goal was to create an empty file.
Cheers, Carl.
actually the goal is not to create an empty file, but a file that I will be writing into, and will also need to copy, modify files... Roedy, as a "side effect of writing?" writing where?? :) thanks.. Frances
.
- Follow-Ups:
- Re: creating/copying files..
- From: Ricky Clarkson
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- References:
- creating/copying files..
- From: Frances
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- From: Frances
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- From: Carl
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- From: Carl
- creating/copying files..
- Prev by Date: Re: creating/copying files..
- Next by Date: compliler
- Previous by thread: Re: creating/copying files..
- Next by thread: Re: creating/copying files..
- Index(es):
Relevant Pages
|