• Post Reply Bookmark Topic Watch Topic
  • New Topic

trying to use getResourceAsStream....  RSS feed

 
Phil Johnston
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and having problems with loading up a CSV file.

Now - if I call the file test.xml or test.properties, then I have no problem loading up the file - however, if I rename the file test.csv or test.txt (and change the java code accordingly) then I get null coming back as my InputStream.

Not seen any mention of this being a problem anywhere else, but has anyone experienced this before?

I'm using jdk1.4.2_05.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Off the top of my head, I'd say it sounds like you are trying to use java.util.Properties, which requires either a properties or xml file, and that is causing the problem. Can you show us a small snippet of code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!