Article View: borland.public.jbuilder.java.language
Article #14539Re: How to create txt file?
From: Anne Williams (Borland)
Date: Fri, 20 Aug 1999 00:00
Date: Fri, 20 Aug 1999 00:00
22 lines
1232 bytes
1232 bytes
Hi Hoo,
I am assuming you are using the java.io package to read/write to your files,
like FileReader( ), FileWriter( ). To create, copy, rename, or delete files
you could use a File object, also part of the java.io package.
Example:
File foo = new File("foo.txt");
With File( ) you can also define the path: File(pathname, filename).
For more info on File usage go to:
http://java.sun.com/products/jdk/1.2/docs/api/java/io/class-use/File.html#java.io
Hope this is of some assistance.
--
Anne M. Williams
JBuilder Developer Support
http://www.borland.com/devsupport/disclaim.html
Please confine your responses to the newsgroups.
Technical Details
Message-ID:
<37BD0E37.D960A1B7@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7pj4vp$7b85@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a89269d322d03d27 X-Google-Attributes: gidf74b3,public From: "Anne Williams (Borland)" <amwilliams@borland.com> Subject: Re: How to create txt file? Date: 1999/08/20 Message-ID: <37BD0E37.D960A1B7@borland.com> X-Deja-AN: 515163295 Content-Transfer-Encoding: 7bit References: <7pj4vp$7b85@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language