From: Advait Bellur Date: 2007-12-26T17:17:07+09:00 Subject: Re: File handling Todd Benson wrote: > On Dec 24, 2007 3:00 PM, Robert Klemme > wrote: >> > The file, along with the two group are >> >> - whether you want an in memory structure or persistent data, >> >> - what you have implemented so far, >> >> - what it is that you are asking. >> >> I'd say there is some room for improvement of your original posting. :-) > > I agree with robert. I think I know what you want to do, but just am > not sure. > > Todd Hi, I am really sorry for not describing by dought properly. I have two files ABC.tvs and DEF.tvs, both these files house student data as shown below ABC.tvs ....... Names Hindi English Mathematics student1 90 75 80 student2 77 84 96 student3 85 84 89 student4 88 91 75 and the other file DEF.tvs ....... Hindi English Sanskrit Names Biology 90 75 80 student11 88 77 84 96 student12 84 85 84 89 student13 99 88 91 75 student14 95 Now I need to put both these file into and array (single associative array) and read them simeltaneously meaning when I execute this program typing the "group_name " followed by "student_name" I should get the result ex ABC student3 o/p => student3 85 84 89 similarly DEF student12 o/p => 77 84 96 student12 84 How could I achieve this Thanking you ARB -- Posted via http://www.ruby-forum.com/.