varlib.tableA[i] = readIn;
Stupid mistake, but the code works. Thanks for pointing me in the right direction!
Type: Posts; User: Blackrabbitjack
varlib.tableA[i] = readIn;
Stupid mistake, but the code works. Thanks for pointing me in the right direction!
public void popTableAArray() {
String readIn;
try{
BufferedReader br = new BufferedReader(new FileReader("tableA.txt"));
System.out.println("For...
public void popTableAArray() {
String readIn;
try{
BufferedReader br = new BufferedReader(new FileReader("tableA.txt"));
for(int i=0;...
Placed the file in the root directory, and changed the println to show the values of readIn. Still outputs my Else first, and still shows the values of the txt file as null. There are no other files...
You're asking the wrong guy. What are you talking about "where the null file is?" Would it not show a IO Error if it loaded a file that doesn't exist? My pathing is entirely correct. I'll try putting...
This code:
public void popTableAArray() {
String readIn;
try{
BufferedReader br = new BufferedReader(new FileReader("db/tableA.txt"));
for(int i=0;...
There is only one text file in the specified directory. It's formatted as such
Sleeping
Tired
Hungry
....
(those are the actual first three lines of the file) Is there something crucial I'm...
The oracle document states that reader will return:
A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached
...
Alright, I've been plugging away at this code for quite some time. I finally felt it necessary to seek assistance in an online forum, as my JAVA mentor is away for the time being.
My idea is to...