vnhenry
asked on
run a program that read a text file in Jcreator
Hi all
how can I run a program that read a text file in J creator. I try to run it and I have a FileNotFound exception message. I run it in DOS and it work.
Is there any code I need to write in order to run it in J creator
how can I run a program that read a text file in J creator. I try to run it and I have a FileNotFound exception message. I run it in DOS and it work.
Is there any code I need to write in order to run it in J creator
Check that the text file you are trying to read is in the directory specified when you declare the file. If you just declare dit by its file name (i.e. no absolute path) make sure that the file is in the same place with the class files.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
JCreator creates a "classes" directory in your project directory to store the .class files. If you don't specify an absolute path for the file to read, it will read from this "classes" directory.
ASKER
thank you all
I think that I have to create a packet to store all of the classes of my project include the textfile. so they all will have same directory.
I think that I have to create a packet to store all of the classes of my project include the textfile. so they all will have same directory.