Steve Haley wrote:
> I am running Python 2.1 which ships with ArcView 9.1. I am going
> through the 2.1 tutorial and came across readlines().
>
> The tutorial seems to be telling me that ‘f.readlines(2) should read out
> 2 bytes plus what is needed to complete the current line. Instead, it
>
Hi Steve,
Here is the python documentation. Hopefully it is a *little* clearer
http://docs.python.org/lib/bltin-file-objects.html
*** readlines ***
readlines( [sizehint])
Read until EOF using readline() and return a list containing the lines thus
read. If the optional sizehint argument
Folks,
I am running Python 2.1 which ships with ArcView 9.1.
I am going through the 2.1 tutorial and came across readlines(). Simply
put it doesn’t seem to be behaving as the tutorial describes. Specifically,
I created a small text file as shown below:
f=open("c:/python21/sfh_mod