readfile2list

decida.readfile2list(file)

synopsis:

Read file and split at newlines.

arguments:

file (string)

file name to read

results:

  • returns lines of file split at newlines

example:

>>> import decida
>>> for line in decida.readfile2list("example.txt") :
...     print line