This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to include full file path in io? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to include full file path in io?" Watch "How to include full file path in io?" New topic
Author

How to include full file path in io?

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138


Why is this error coming? I want to give complete path not a shorter one.
What is the other way?
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Hi,
Why is this error coming? I want to give complete path not a shorter one.
What is the other way?



document and settings has space in between.
U cannot give file names with space inbetween. Give the dos names for those dir and then execute the program.
Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
I don't want to give dos names.
Is any other way???
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I don't have a Windows machine in front of me, but try it with an "s" at the end of "document."
[ December 12, 2005: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Originally posted by marc weber:
I don't have a Windows machine in front of me, but try it with an "s" at the end of "document."

[ December 12, 2005: Message edited by: marc weber ]


AAh, i didnt see it,
yes its Documents and Settings with a S.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Originally posted by Sri Ram:

U cannot give file names with space inbetween.


Just to reiterate, "u" can give file names with spaces!


There is no emoticon for what I am feeling!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to include full file path in io?
 
Similar Threads
Regular expressions
Cannot get the complete filename
read a file ?
reading from a file
Canonical vs Absolute