FileName with a whitespace in command line argument

I have a problem regarding reading a file with a whitespace using a command line argument.

Ex.

I have a file named MY FILE.txt then i will require it as a command line argument:

java Test MY FILE.txt

Java will throw an error because he will interpret MY as the file name not as MY FILE.txt....

So how can i let java know that the space in between is part of the filename?

PLEASE HELP.

[428 byte] By [kneelmara] at [2007-11-27 2:26:56]
# 1
by putting "quotes" around it
georgemca at 2007-7-12 2:36:59 > top of Java-index,Java Essentials,Java Programming...
# 2
it did not work
kneelmara at 2007-7-12 2:36:59 > top of Java-index,Java Essentials,Java Programming...
# 3
in what way did it "not" work? you did adjust your code to remove the quotes, I take it?
georgemca at 2007-7-12 2:36:59 > top of Java-index,Java Essentials,Java Programming...
# 4
ah ok...i got your point now...hehehe...thanks
kneelmara at 2007-7-12 2:36:59 > top of Java-index,Java Essentials,Java Programming...
# 5
lol good stuff
georgemca at 2007-7-12 2:36:59 > top of Java-index,Java Essentials,Java Programming...