public void read( ){
         try{
    // Open the file that is the first 
    // command line parameter
    FileInputStream fstream = new FileInputStream("puntos.txt");
    // Get the object of DataInputStream
    DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
    String strLine;
    strLine = br.readLine();
    int count = 0;
    //Read File Line By Line
   vertices = new Stack<Integer>();
   //Nro de puntos
   int size = Integer.parseInt(strLine);
   puntos = new String [size];
   while((strLine = br.readLine()) != null){
          // System.out.println(strLine);
          //Mira si faltan puntos por leer
           if(count < size){
          //Guarda los puntos en el vector
           puntos[count] = strLine;
           count++;
           }else{
                 if(count == size){
                   aristas = Integer.parseInt(strLine);
                   count++;
                 }
           //Store the vertex
               //
               String[] b = strLine.split(" ");
                    for(int c = 0; c < b.length; c++){
                        vertices.push(Integer.parseInt(b[c]));
                    }
           }

    }
    //Close the input stream
    in.close();
    }catch (Exception e){//Catch exception if any
      System.err.println("Error: " + e);
    }
  }