public void languageAndWordlistCheckMain() {    
            
        try{
            // Open the file that is the first 
            // command line parameter
            FileInputStream fstream = new FileInputStream("Options.dat");
            // Get the object of DataInputStream
            DataInputStream in = new DataInputStream(fstream);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            String strLine;
            //Read File Line By Line
            int count =0;
            
            while ((strLine = br.readLine()) != null)   {
                // Print the content on the console
                if(count == 0){
                    wordbook = strLine;
                }else if(count == 1){
                    language = strLine;
                }
                count++;
            }
            //Close the input stream
            in.close();
        }catch (Exception e){//Catch exception if any
            System.err.println("Error: " + e.getMessage());
        }
        
        //prepare the language selected:
        if(Integer.parseInt(language) == 0){
            jButton1.setText("Nächstes Wort>>");
            jButton2.setText("<< Zurück");
            jButton3.setText("der Artikel");
            jButton4.setText("der Plural");
            jMenu1.setText("Hilfe");
            jMenu2.setText("Geräte");
            jMenuItem1.setText("Optionen");
            jMenuItem2.setText("Wortliste Verwaltung");
            jMenuItem3.setText("Über");
        }else if(Integer.parseInt(language) == 1){
            jButton1.setText("Sıradaki Kelime >>");
            jButton2.setText("<< Geri");
            jButton3.setText("Artikel");
            jButton4.setText("Çoğul");
            jMenu1.setText("Yardım");
            jMenu2.setText("Ayarlar");
            jMenuItem1.setText("Seçenekler");
            jMenuItem2.setText("Kelime Listesini Yönet");
            jMenuItem3.setText("Hakkında");            
        }else if(Integer.parseInt(language) == 2){
            jButton1.setText("Next Word >>");
            jButton2.setText("<< Back");
            jButton3.setText("The Article");
            jButton4.setText("The Plural");
            jMenu1.setText("Help");
            jMenu2.setText("Tools");
            jMenuItem1.setText("Options");
            jMenuItem2.setText("Edit Word List");
            jMenuItem3.setText("About"); 
        }
    }