From: Fosiul Alam Date: 2012-08-06T08:01:23+09:00 Subject: how perform addition a text value with an integer HI i dont know how to get this .. i put a value in a text file cat extainfo.txt 1008 now i want to get this value from another file myfile = File.open('extrainfo.txt') cuid = myfile.readline puts cuid but i need to add + 1 with this cuid i tryed couple of ways.. but no luck Integer(cuid) cuid = cuid +1 puts cuid but it through the bellow error `+': can't convert Fixnum into String (TypeError) how will i increase the value .. ?? Please help me with this. regards -- Posted via http://www.ruby-forum.com/.