public static String allScores(String fileName) throws IOException
  {//System.out.println("allScores");
    Scanner scan;
    String[] usernames;
    long[] wins, losses;
    int fileLength = 0, win = -1, lose = -1;
    try
    {
      scan = new Scanner(new File(fileName));
    }
    catch (FileNotFoundException ex)
    {
      System.err.println("File not found: " + fileName);
//      return "File not found: " + fileName;

      FileWriter writeToFile = new FileWriter(fileName);
      writeToFile.write("//BEGIN\r\n" + "//END");
      writeToFile.close();

      scan = new Scanner(new File(fileName));
    }

    String fileContents = "", fileLine = scan.nextLine();
    while (!fileLine.equals("//END")) //First sweep gets the length of the file
    {
      fileLine = scan.nextLine();
      if (!fileLine.equals("//END"))
        fileLength++;
    }
    if (fileLength == 0)
      return "There are no scores in the scoreboard!\nSave yours and get 1st place ;3";

    usernames = new String[fileLength];
    wins = new long[fileLength];
    losses = new long[fileLength];

    scan = new Scanner(new File(fileName)); //RESET THE SCANNER FOR THE SECOND SWEEP
    String spare = scan.next();

    int i;
    for (i = 0; i < fileLength; i++) //Second sweep makes arrays of all values
    {
      try
      {
        usernames[i] = scan.next();
        //System.out.print(usernames[i]);
        wins[i] = scan.nextLong();
        //System.out.print(wins[i]);
        losses[i] = scan.nextLong();
        //System.out.println(losses[i]);
      }
      catch (InputMismatchException ex)
      {
        changeScore(fileName, usernames[i], 0, 0);
      }
    }

    usernames = readNames(usernames);

    fileContents = "Username\t Wins\t Losses\n";
    for (i = 0; i < fileLength; i++)
    {
      fileContents += (i + 1 + ": " + usernames[i] + (usernames[i].length() < 5 ? "\t\t" : "\t ") + wins[i] + "\t " + losses[i] + "\n");
    }

    return (fileContents);
  }//END allScores METHOD