Skip to main content

read_urls_from_file

Function read_urls_from_file 

Source
pub fn read_urls_from_file(filename: &str) -> SitemapResult<Vec<Url>>
Expand description

Reads URLs from a file, one URL per line.

§Arguments

  • filename - The name of the file to read URLs from

§Errors

This function will return an error if:

  • The file cannot be opened
  • There are issues reading lines from the file
  • Any of the URLs in the file are invalid