View Single Post
  #1  
Old 09-28-2009, 01:18 AM
Python Python is offline
Senior Member
 
Join Date: Jun 2009
Posts: 4,684
Default Read a line from a txt file

Hi I am having problems using the readline command, I get an alarm lineA = fin.readline[lpa].strip() # Read line indicated by pointer a and delete CR TypeError: 'builtin_function_or_method' object is unsubscriptable when trying to run this code I tried removing the strip component and that...
__________________
Python
Domain Name Forum
Reply With Quote