public int read()
    {
        try
        {
            FileInputStream inStream = new FileInputStream("options.txt");
            DataInputStream in = new DataInputStream(inStream);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            
            
            url = br.readLine();
            url = url.replaceFirst("url: ", "");
            //dbcon.setUrl(url);
           
            
            login = br.readLine();
            login = login.replaceFirst("login: ","");
           // dbcon.setLogin(login);
           
            
            pass = br.readLine();
            pass = pass.replaceFirst("pass: ", "");
            //dbcon.setPass(pass);
           
            status = 1;
            br.close();
        }//try
        catch(Exception e)
        {
            if(e.getMessage().contains("options.txt ("))
           {
               LOGGER.info("Brak pliku opcji! Czy chcesz go utworzyc? tak/nie");
                   Scanner skan = new Scanner(System.in);  
                    String wybor = skan.nextLine();
                    if(wybor.equals("tak")) 
                    {
                     newOptionsFile();  
                     read();
                    }             
           }//if
           else {
                LOGGER.log(Level.SEVERE,e.getMessage(),e);
                status = 2;
                if(proba<2)
                {
                 proba++;
                 newOptionsFile();  
                 read();
                }
            }
        }//catch
        return status;
    }//read