Re: creating/copying files..
- From: Frances <fdr58@xxxxxxxxx>
- Date: 28 Dec 2005 23:12:35 +0100
Roedy Green wrote:
On 28 Dec 2005 21:48:02 +0100, Frances <fdr58@xxxxxxxxx> wrote, quoted or indirectly quoted someone who said :
I mean if I want to create an html file, then write into it, how would I do that?
see http://mindprod.com/applets/fileio.html
File lets you play with the file name, check for existence, delete. But it does not do anything with contents.
You need say a FileWriter FileOutputStream or such.
thank you Roedy, you mean to CREATE files I need FileWriter and FileOutputStream? it says in docs under FileWriter:
Convenience class for writing character files.
(still don't know if by "writing" is meant creating a new file or just adding content to an existing file..)
this guy http://javaalmanac.com/egs/java.io/CreateFile.html?l=rel
seems to be implying you CAN create new files w/class File.. thank you Roedy..
Frances
.
- Follow-Ups:
- Re: creating/copying files..
- From: Roedy Green
- Re: creating/copying files..
- References:
- creating/copying files..
- From: Frances
- 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
|