M
Matthew Margolis
I currently have a large text file based address book(for myself, not
spamming) that I am working on making suitable for import into a
database. To do this I need comma separated values. How would I go
about adding a comma after the state in the person's mailing address?
An example record:
Name: Bob Fakeyhead
Title: Old Boss
Phone: 555-555-5555
Mailing: 23456 Something Street
OldPlace, WA 55555
I need a ',' after WA.
Right now I am reading the file into a string to edit it and then
writing the comma separated version back out to file. For most of the
other fields I can just add a comma to the end of each line and get the
desired effect but for the Address I need to have multiple fields and
therefore multiple commas per line.
Thank you,
Matthew Margolis
spamming) that I am working on making suitable for import into a
database. To do this I need comma separated values. How would I go
about adding a comma after the state in the person's mailing address?
An example record:
Name: Bob Fakeyhead
Title: Old Boss
Phone: 555-555-5555
Mailing: 23456 Something Street
OldPlace, WA 55555
I need a ',' after WA.
Right now I am reading the file into a string to edit it and then
writing the comma separated version back out to file. For most of the
other fields I can just add a comma to the end of each line and get the
desired effect but for the Address I need to have multiple fields and
therefore multiple commas per line.
Thank you,
Matthew Margolis