Class resources failing
From: Daniel Sjoblom (dsjoblom_at_mbnet.fi_NOSPAM)
Date: 03/30/04
- Next message: Gavin Brewer: "Newbie Question: CORBA programming in J++"
- Previous message: William Brogden: "Re: How can i send a HTTP-request (GET)?"
- Next in thread: Andrew Thompson: "Re: Class resources failing"
- Reply: Andrew Thompson: "Re: Class resources failing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 07:28:31 +0300
I'm using SomeClass.class.getResource("somefile").getPath() to read in
some file from a local harddrive. It works fine if there is no
whitespace in the path name, but fails miserably if there is. All the
whitespace is replaced by %20. Now, I know how to fix this, but then my
app will fail if someone has the characters %20 in their path. Should I
perhaps use something else? (This is on windows btw. I haven't tested it
on linux yet, since I haven't downloaded a VM yet (just installed
Mandrake Linux this weekend.))
-- Daniel Sjöblom Remove _NOSPAM to reply by mail
- Next message: Gavin Brewer: "Newbie Question: CORBA programming in J++"
- Previous message: William Brogden: "Re: How can i send a HTTP-request (GET)?"
- Next in thread: Andrew Thompson: "Re: Class resources failing"
- Reply: Andrew Thompson: "Re: Class resources failing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]