|
|
@ -38,14 +38,14 @@ import csv
|
|
|
|
# "HJU8.BE",61.62,"23.12.09"
|
|
|
|
# "HJU8.BE",61.62,"23.12.09"
|
|
|
|
# ^
|
|
|
|
# ^
|
|
|
|
|
|
|
|
|
|
|
|
fin = raw_input('Please enter the input Prices filename (.csv, .PRN, etc.) : ')
|
|
|
|
fin = input('Please enter the input Prices filename (.csv, .PRN, etc.) : ')
|
|
|
|
fout = raw_input('Please enter the output filename (add .qif) : ')
|
|
|
|
fout = input('Please enter the output filename (add .qif) : ')
|
|
|
|
symbol = raw_input('Please enter the symbol for this stock: ')
|
|
|
|
symbol = input('Please enter the symbol for this stock: ')
|
|
|
|
symbol ='"'+ symbol+'"'# Add " " around symbol
|
|
|
|
symbol ='"'+ symbol+'"'# Add " " around symbol
|
|
|
|
|
|
|
|
|
|
|
|
inputfile = csv.reader(open(fin, 'rb'))
|
|
|
|
inputfile = csv.reader(open(fin, 'rb'))
|
|
|
|
outputfile = open(fout, 'w')
|
|
|
|
outputfile = open(fout, 'w')
|
|
|
|
inputfile.next() # Skip header line. Comment out if no header.
|
|
|
|
next(inputfile) # Skip header line. Comment out if no header.
|
|
|
|
inputfile_list = []
|
|
|
|
inputfile_list = []
|
|
|
|
inputfile_list.extend(inputfile)
|
|
|
|
inputfile_list.extend(inputfile)
|
|
|
|
|
|
|
|
|
|
|
|