Skip to content

Instantly share code, notes, and snippets.

@muzizongheng
Created July 18, 2013 06:54
Show Gist options
  • Select an option

  • Save muzizongheng/6027210 to your computer and use it in GitHub Desktop.

Select an option

Save muzizongheng/6027210 to your computer and use it in GitHub Desktop.
convert file to list
pingServiceUrls = open("pingcfg", "r", encoding='utf-8-sig')
pingServiceUrls.seek(0)
self.pingServiceUrls = pingServiceUrls.readlines()
print(self.pingServiceUrls)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment