private List<String> read_commands_from_file()
    {
        List<String> stroki = new ArrayList();

        try
        {
            DataInputStream in = new DataInputStream(new FileInputStream("commands.txt"));
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            String strLine;
            while ((strLine = br.readLine()) != null)
            {
                if(strLine.length() > 0)
                {
                    stroki.add(strLine);
                }
            }
            in.close();
        }
        catch (FileNotFoundException e)
        {
            //e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            System.out.println("File commands.txt not found");
        }
        catch (IOException e)
        {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

        return stroki;
    }