I have a text file named ‘triple_response.txt’ which contain the some text as : (1,(db_name,string),DSP) (1,(rel, id),2) (2,(rel_name, string),DataSource) (2,(tuple, id),201) (2,(tuple, id),202) (2,(tuple, id),203) (201,(src_id,varchar),Pos201510070) (201,(src_name,varchar),Postgres) (201,(password,varchar),root) (201,(host,varchar),localhost) (201,(created_date,date),2015-10-07) (201,(user_name,varchar),postgres) (201,(src_type,varchar),Structured) (201,(db_name,varchar),postgres) (201,(port,numeric),None) (202,(src_id,varchar),pos201510060) (202,(src_name,varchar),Postgres) (202,(password,varchar),root) (202,(host,varchar),localhost) (202,(created_date,date),2015-10-06) (202,(user_name,varchar),postgres) (202,(src_type,varchar),Structured) (202,(db_name,varchar),DSP) (202,(port,numeric),5432) (203,(src_id,varchar),pos201510060) (203,(src_name,varchar),Postgres) (203,(password,varchar),root) (203,(host,varchar),localhost) (203,(created_date,date),2015-10-06) (203,(user_name,varchar),postgres) (203,(src_type,varchar),Structured) (203,(db_name,varchar),maindb) (203,(port,numeric),5432) I am trying […]
The post Iterating the content of a text file in python appeared first on BlogoSfera.