public List<String> getNextLink() {
        
        if (inFile == null) {
            openFile();
        }
        
        if (open) {
        
            try {
                return inFile.readLine();
            } catch (IOException ex) {
                closeFile();
                Logger.getLogger(ReadSimpleLinksFile.class.getName()).log(Level.SEVERE, null, ex);
                return null;
            }
        
        } else {
            return null;
        }
        
    }