public ScriptFile(String fileName)
    {
        this.fileName = fileName;

        try
        {

            BufferedReader reader = new BufferedReader(new FileReader(fileName));

            while (reader.ready()) {
                String line = reader.readLine().trim();

                if (line.length() == 0)
                    continue;

                if (line.charAt(0) == ';')
                    continue;

                lines.add(line);
            }
        } catch (Exception e)
        {
            throw new FileReadError("Ошибка при чтении файла: " + e.toString());
        }
    }