Search:

Type: Posts; User: Blackrabbitjack

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    varlib.tableA[i] = readIn;

    Stupid mistake, but the code works. Thanks for pointing me in the right direction!
  2. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    public void popTableAArray() {
    String readIn;

    try{
    BufferedReader br = new BufferedReader(new FileReader("tableA.txt"));
    System.out.println("For...
  3. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    public void popTableAArray() {
    String readIn;

    try{
    BufferedReader br = new BufferedReader(new FileReader("tableA.txt"));
    for(int i=0;...
  4. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    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...
  5. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    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...
  6. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    This code:

    public void popTableAArray() {
    String readIn;
    try{
    BufferedReader br = new BufferedReader(new FileReader("db/tableA.txt"));
    for(int i=0;...
  7. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    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...
  8. Replies
    18
    Views
    1,565

    [SOLVED] Re: Array Population via .txt File

    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
    ...
  9. Replies
    18
    Views
    1,565

    [SOLVED] Array Population via .txt File

    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...
Results 1 to 9 of 9