Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void read(){
- try{
- BufferedReader lasfil = new BufferedReader(new FileReader("npc.txt") );
- ledig = lasfil.readLine();
- while( visare < lines() ){
- if(ledig.equals("909"/*Start*/) ){
- lasfil.readLine();
- do{
- namn = lasfil.readLine();
- full += "<b>" + rub[id] + "</b><br>" + namn + "<br>";
- id++;
- System.out.println(full);
- }while( !namn.equals("999"/*Stopp*/) );
- id = 0;
- }
- ledig = lasfil.readLine();
- visare ++;
- }
- lasfil.close();
- }
- catch(Exception e){}
- full += "</html>";
- lbl.setText(full);
- }
Advertisement
Add Comment
Please, Sign In to add comment