public String[] loadFromFile() {
        String filename = "Database.ini";
        Scanner textScan;
        String[] params = new String[5];

        System.out.print("Loading: " + filename + "...");
        try {
            File file = new File(filename);
            textScan = new Scanner(file);

            int count = 0;

            while (textScan.hasNextLine() && count < 5) {
                params[count] = textScan.nextLine().trim();
                count++;
            }

            textScan.close();
        } catch (FileNotFoundException e) {
            System.out.println("File not found: " + e.getMessage());
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("Index out of bound: " + e.getMessage());
        } catch (ArrayStoreException e) {
            System.out.println("Wrong object: " + e.getMessage());
        }
        return params;
    }