On Jun 2, 2:08 am, "kalakouentin" <[EMAIL PROTECTED]> wrote:

>  Do you know a way to actually load my data in a more
> "batch-like" way so I will avoid the constant line by line reading?

If your files will fit in memory, you can just do

text = file.readlines()

and Python will read the entire file into a list of strings named
'text,' where each item in the list corresponds to one 'line' of the
file.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to