open file and create file .


Read With Formatting | Free Open Source Tutorials Account

Python Programming
Thread: open file and create file .


ephhabte
I am learning to python programming and i have some questions about python code . i have tried to write some codes for reading a file from a different database and creating a file if the file doesn,t exsit on database. I have to look 3 different databases before I create the file. Can anyone help me how to solve this problem ?
how can jeg make a struktur to look up in 3 different database-what do i need before I start to program.


For example.

# I think I have to use this to open the file and read
dbm= open('dbm.fil','r'):
for line in dbms.xreadlines():