Thanks. If only I was better at maps.
EDIT:
Ok i can't seem to get this working, i know i screwed up completely somehow, so here is a snippet of my script which shows how i use it.
string [int] creamers;
file_to_map( "creamed.txt" , creamers);
if(THIS COMMAND IS ACTIVATED){
foreach...