|
|
|
@ -38,14 +38,14 @@ import csv
|
|
|
|
|
# "HJU8.BE",61.62,"23.12.09"
|
|
|
|
|
# ^
|
|
|
|
|
|
|
|
|
|
fin = raw_input('Please enter the input Prices filename (.csv, .PRN, etc.) : ')
|
|
|
|
|
fout = raw_input('Please enter the output filename (add .qif) : ')
|
|
|
|
|
symbol = raw_input('Please enter the symbol for this stock: ')
|
|
|
|
|
fin = input('Please enter the input Prices filename (.csv, .PRN, etc.) : ')
|
|
|
|
|
fout = input('Please enter the output filename (add .qif) : ')
|
|
|
|
|
symbol = input('Please enter the symbol for this stock: ')
|
|
|
|
|
symbol ='"'+ symbol+'"'# Add " " around symbol
|
|
|
|
|
|
|
|
|
|
inputfile = csv.reader(open(fin, 'rb'))
|
|
|
|
|
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.extend(inputfile)
|
|
|
|
|
|
|
|
|
|