File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying a text File

 
Jdinesh Tiwari
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12022
25
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jdinesh Tiwari
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 225
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic