• Post Reply Bookmark Topic Watch Topic
  • New Topic

unix filepath to file class  RSS feed

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How can i pass unix fliepath to the read a file in java ?

 
Mohamed Sanaulla
Bartender
Posts: 3184
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
divya kundapur wrote:
How can i pass unix fliepath to the read a file in java ?



You can always specify the path as a string and pass it. So the java.io.File has different constructs, you can have a look there. Or if you are using a GUI JFileChooser then its more easier there.

Anyways please TellTheDetails
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohamed Sanaulla wrote:
divya kundapur wrote:
How can i pass unix fliepath to the read a file in java ?



You can always specify the path as a string and pass it. So the java.io.File has different constructs, you can have a look there. Or if you are using a GUI JFileChooser then its more easier there.

Anyways please TellTheDetails


Thank you, i need to pass the location of csv file which is on unix to read the csv.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!