In my void parseListings() I have an if statment that checks for a "N/A" condition and if its not there, i need to append the unit number. the problem is that when the condition is true it appends the city name twice. Does anyone have a quick fix to this problem? any help would be greatly apreciated. This program reads from a delimited file, and then writes it to another file. the delimited file looks like this:
123 Cherry Tree Drive#330#Condo#2#1#275900#Toronto#
14 Leaside Lane#N/A#House#4#2#445500#Brampton#
2478 Waterfront Avenue#N/A#House#5#3#899900#Mississauga#
7 Lucky Lane#1206#Condo#3#2#310000#Toronto#
51 West Street#32#Townhouse#4#2#450000#Brampton#
193 Crystal Road#1519#Condo#1#1#250750#Toronto#
3914 Tangerine Terrace#N/A#House#3#1#427750#Mississauga#
10 Redding Road#N/A#House#4#2#512350#Toronto#
76 Old School Avenue#227#Townhouse#3#2#475000#Toronto#
90 Brookhaven Terrace#N/A#House#4#2#512750#Brampton#
And the output is supposed to look like this: