Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!