Re: creating/copying files..
- From: Carl <_Nospam_@xxxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 01:26:22 GMT
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. .
- Follow-Ups:
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- From: Frances
- 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
- creating/copying files..
- Prev by Date: Re: creating/copying files..
- Next by Date: Re: creating/copying files..
- Previous by thread: Re: creating/copying files..
- Next by thread: Re: creating/copying files..
- Index(es):
Relevant Pages
|
|