Current Page:
NeXtMidas Training
Working with Files
Lab 3
Solution
|
|
- Lab 3 (solution):
- Here is what you should have done:
- Use
LIST2 to display the file airports.csv.
nM> list2 airports.csv
- Use
LIST2 to display the file apenny.prm.
nM> list2 apenny.prm
- Use
LIST2 and a result table template to color the text in each of the columns in
airports.csv RED,GREEN,BLUE and YELLOW, respectively.
nM> list2 airports.csv {AIRPORT_NAME={FGCOLOR=RED},CODE={FGCOLOR=GREEN},LATITUDE={FGCOLOR=BLUE},LONGITUDE={FGCOLOR=YELLOW}}
- Use the
TABLE command to save the table you used above as a table file,
then use LIST2 to display airports.csv using the table file as a template.
nM> res tbl {AIRPORT_NAME={FGCOLOR=RED},CODE={FGCOLOR=GREEN},LATITUDE={FGCOLOR=BLUE},LONGITUDE={FGCOLOR=YELLOW}}
nM> table tbl SAVE template.tbl
nM> list2 airports.csv template.tbl
|
|
|