This discussion is archived
3 Replies Latest reply: Mar 24, 2008 2:16 PM by 807591 RSS

File.renameTo() Question

807591 Newbie
Currently Being Moderated
I am writing a small utility to parse some files and all is well except when there is a colon in the "to" filename i.e.

fileName = "MONDAY : 9AM.TXT"

It doesn't like the colon. Any way around this???

The files that don't have colons work fine but, any new filename that contains a colon will return false (from renameTo())

Thanks,
Kevin