On Aug 9, 2011, at 3:44 PM, MB Software Solutions, LLC wrote:

> Talking with a non-Fox person today who wants to get into programming. 
> She thinks Python is definitely the way she wants to go.  Reminded me of 
> you guys here!

with file("my_big_text_file") as myfile:
        for line in myfile:
                # Do whatever you need to do with that line

That's how you do line-by-line processing of a file in Python. Pretty simple, 
huh? And very memory-efficient, as it doesn't read the whole thing in at once 
like ALINES() does in Fox.


-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to