> On Sat, 14 Aug 2004 13:38:29 GMT, Anony! wrote:
>
> > fd.setFile(fd.getFile() + ".txt");
>
> You should *check* first..
>
> if ( !fd.getFile().toLowerCase().endsWith(".txt") ) {
> fd.setFile(fd.getFile() + ".txt");
> }
Why do I need to check? I'm writing out to a file, and not the other way
around. So of course, it will end with .txt cos thats what i want.
Thanks
AAA
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29/07/2004