implement reading file with links in stdin