| Author |
Displaying a text File
|
Jdinesh Tiwari
Ranch Hand
Joined: Jan 13, 2013
Posts: 32
|
|
Hi, All
According to this code specified in book
I am unable to see my File
as per the command specified at command promt
please see the last line n the comment very first.
Though my file exists D:
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 10040
|
|
seems to work for me.
Can you be more specific in what the problem is? Did you compile it? Did you run it? What were the exact commands you gave? Did it show an error? what is in the file you are trying to display?
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
Jdinesh Tiwari
Ranch Hand
Joined: Jan 13, 2013
Posts: 32
|
|
Hi, fred
No, there is no problem neither in its compilation nor in execution
Actually i had a file in D: with name TEST.TXT and want to see that very file
and for file display i was trying this program, but i am unable to see my file (i want that it should get open)
|
 |
Ishan Pandya
Ranch Hand
Joined: Feb 06, 2012
Posts: 138
|
|
Seems good to me also.. It is displaying in my machine also.
Is your java file and the .txt file in the same directory? if no the store them into the same directory any run the program.
|
OCPJP
|
 |
 |
|
|
subject: Displaying a text File
|
|
|