LineScanner(String text) {
            int c = 0;
            data = new ArrayList<String>();
            String tmp = "";
            lineCount = 1;
            current = 0;

            while (c < text.length()) {
                tmp = tmp + Character.toString(text.charAt(c));
                if (text.charAt(c) == 0x0a) {
                    data.add(tmp);
                    tmp = "";
                    lineCount++;
                }
                c++;
            }
            if (!tmp.matches("")) {
                data.add(tmp);
            }
        }