On Thu, 23 Aug 2012 08:01:19 -0700 (PDT), zyng <>
wrote, quoted or indirectly quoted someone who said :
>My Java program needs to access a text file(in fact, the
Java code will use Linux System command "cp" to copy this text file
to a destination folder during running). Suppose this is my Java
program HelloWorld.java:
you include it with ANT or Jar.exe
You access it using getResource or getResourceAsStream.
See
http://mindprod.com/jgloss/resource.html
for image examples see
http://mindprod.com/jgloss/image.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
A new scientific truth does not triumph by convincing its opponents and making them see the light,
but rather because its opponents eventually die, and a new generation grows up that is familiar with it.
~ Max Planck 1858-04-23 1947-10-04