Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro Question

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
using VS .net 2003, I have a load of data that has been supplied to me as a text file. The data is a large number of records that I want to convert into a different format, and output to a bin file (a one off operation)

I have created a macro to do almost all of it, but I want to add some additional information to each record. How do I add make a macro string object = some data I have copied, then when I have manipulated this string with my macro, add it to my formatted data on my Cpp page ?

(It's probably not the best way, but I am grabbing each line, re formatting it and outputting it as a series of *fs << myData; lines in my code (stupidly I assumed that macros might be easier than writing a one off program to input the data from one file, convert it, and then output it but now I have this problem I want to sort it !

Cheers
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top