[Tutor] output question

Shi Mu samrobertsmith at gmail.com
Sat Nov 12 12:02:50 CET 2005


On 11/12/05, Liam Clarke <ml.cyresse at gmail.com> wrote:
> Sorry Shi Mu, don't understand the question.
>
> So, you're successfull opening a file. Now, you need to read it
>
> for line in fsock:
>    print line
>
> or
>
> fsockData = fsock.read()
>
> or
>
> nextLine = fsock.readline()
>
> Have a play with those.
it works! thanks!


More information about the Tutor mailing list