Re: creating/copying files..



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



.



Relevant Pages

  • Re: something like switch in c
    ... > Is that what I'm implying? ... Assuming you're playing in a given key, ... > Are you a guitar player?. ... Actually can be done quite easily--you just play down the neck. ...
    (comp.programming)
  • Re: 7/28 Giants Stadium
    ... It's not the existence of a "theme" that makes or breaks a show for ... But what does matter a lot to me is the belief that in deciding ... what to play and how to play it, Bruce have *something* in mind, other ... 73-expansion, of self and mind. ...
    (rec.music.artists.springsteen)
  • Lang Lang
    ... previously registered the existence of this young pianist and was ... absolutely captivated by his body language as he layed the Second ... Chopin piano concerto. ... I'm very glad he feels he has grown up enough to play it ...
    (uk.media.radio.archers)
  • Re: Musics place in evolution
    ... > In what ways can evolution explain the existence of music? ... > even seem to be a selective advantage to simple pitch recognition. ... If I play you ...
    (sci.bio.evolution)
  • Re: The alternative Delphi roadmap to success
    ... Surely you're not implying that the existence of SPs implies ...
    (borland.public.delphi.non-technical)