Enumerating words and Adding integer, character and string

D

dont bother

1. How do I make a vector of words in a file.
Ex:
File has

Alpha
Beta
Gamma

I want to have this file:
1 Alpha
2 Beta
3 Gamma

I just dont want to write it/print it instead I want a
mapping. A vector kind of thing whose first attribute
is interger second is the 'word'


2. How to I create a string for example by adding:

s=1 + ":" + "dont"

this does not work if I normally try to concatenate
and write to a file.

Any help is appreciated
Thanks
Dont

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top