Appending data to an excel sheet by python code

Manoj Rout manojrout70 at gmail.com
Sat Sep 14 07:33:42 EDT 2013


hi
  i want to append some data to an existing excel sheet by reading from  file.But here i am facing 2 problem.first is when i am reading from file.


import re

file=open("C:\Workspace\WS2\P1\Dave\Generated\src\UART001\UART001_Conf.c","r")
strings=re.search(r'(?<=(.Mode = UART_))\w+',file.read())
string=re.search(r'(?<=(.StopBit = UART_))\w+',file.read())

print strings.group()
print string.group()

workbook.close()



Here if i will read only once then it is fine and not showing any error.But if i will do it for second time i.e.2nd string i have to search and print both of them,then it is showing error.

And one more problem how to append some data to an existing excel sheet by python code.

so can u please help me on this problem.

Thanks and with regards 
Manoj Rout



More information about the Python-list mailing list