GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Tuesday, December 21, 2010

Reading File In Python

Here's a simple code on how to read file through Python:

>> fd = open("D://data.txt")
>> content = fd.readline();
>> while(content!=""):
>>     content = fd.readline();
>>     print content
Share/Bookmark

No comments:

Post a Comment