Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

opening file in java  RSS feed

 
rucha kulkarni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
How do we open a file in java?
rucha
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java open file
Really, is it so hard to SearchFirst? ShowSomeEffort!
 
eric totte
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Familiarize yourself with java.io classes.
 
rucha kulkarni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to write and read from a file. I just want the file to be displayed(opened) automatically without going to the specified location when data is inserted into the file.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eh what? If you want the file to be opened by the associated editor then you can you java.awt.Desktop
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!