I am reading data from file inputfile.txt:
inputfile.txt:
sch,tab,"select no,name,place from test"
sch1,tab1,"select no,name,place from test1"
file1 = open('inputfile.txt', 'r')
Lines = file1.readlines()
[sch,tab,query]=line.split(",")
print(query)
It is printing like :'select no'
My expected output is : 'select no,name,place from test'
how to print complete query instead of sub query.
csvmodule, which does exactly this.