This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to include full file path in io?

 
Hemant Agarwal
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Why is this error coming? I want to give complete path not a shorter one.
What is the other way?
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't want to give dos names.
Is any other way???
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sri Ram:

U cannot give file names with space inbetween.


Just to reiterate, "u" can give file names with spaces!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic