Comma Delimited

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MicheleW
    New Member
    • May 2007
    • 8

    Comma Delimited

    Hello,
    Does anyone have a clue as to how I can code my app so the data will look like below?
    output is a text file, consisting of three columns of data, comma delimited, with quotes around each column. The output should look like this:

    "00501","NY","H OLTSVILLE"
    "00544","NY","H OLTSVILLE"
    "00601","PR","A DJUNTAS"
    "00602","PR","A GUADA"
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Originally posted by MicheleW
    Hello,
    Does anyone have a clue as to how I can code my app so the data will look like below?
    output is a text file, consisting of three columns of data, comma delimited, with quotes around each column. The output should look like this:

    "00501","NY","H OLTSVILLE"
    "00544","NY","H OLTSVILLE"
    "00601","PR","A DJUNTAS"
    "00602","PR","A GUADA"
    Code:
    string myzip="";
    string mystate="";
    string mycity="";
    
    //start a loop?
    //do something to populate those variables with your data
    
    string myline="\""+myzip+"\", \""+mystate+"\", \""+mycity+"\"\r\n";
    //write myline to a file
    
    //go back to start of loop

    Comment

    • MicheleW
      New Member
      • May 2007
      • 8

      #3
      thank you for your input

      Comment

      Working...