[ubuntu] Reading a file and assigning each line to a variable

view story

http://ubuntuforums.org – I have a file and i'd like to be able to read it, taking each line to a variable as dictated by the file: structure: var1:result1 var2:result2 var3:result3 I'd like each of these to represent var1=result1 var2=result2 var3=result3 I think i know how to split these up using : as a seperator, but i'm not sure where to start on taking one of the elements as the variable name. Cheers Chris (Hardware)