Making a string, file-safe (file-encode??)
- From: adamorn@xxxxxxxxx
- Date: Tue, 17 Jun 2008 11:54:43 -0700 (PDT)
I was wondering if there was a quick way to ensure that a filename is
a safe.
What I mean is that if I am creating a file from a string variable, I
want to ensure that the file will actually be able to be created. So
if it contains a "?", then clearly I would want to eliminate it.
I know that there is something like URL encode that encodes strings
for use in urls, but is there another function that works similarly
for strings for files that I want to create?
Thanks!
.
- Follow-Ups:
- Re: Making a string, file-safe (file-encode??)
- From: Roedy Green
- Re: Making a string, file-safe (file-encode??)
- From: Eric Sosman
- Re: Making a string, file-safe (file-encode??)
- From: Daniel Pitts
- Re: Making a string, file-safe (file-encode??)
- Prev by Date: using CipherInputStream
- Next by Date: Re: Making a string, file-safe (file-encode??)
- Previous by thread: using CipherInputStream
- Next by thread: Re: Making a string, file-safe (file-encode??)
- Index(es):
Relevant Pages
|