Insertion of records in a data file Original data file (data.txt) Au Gigi ag@hotmail.com Chan Cissy cc@yahoo.com Lee Peter lp@doramail.com So Frankie sf@xoom.com Yum David yd@hongkong.com New name New E-mail Ma Tom mt@excite.com Algorithm: Search the array for the name such that the element in the array is just greater than the ¡¥New name¡¦, record this counter I, copy all the records for I to I+1, copy the new name and the E-mail to the record of I, output all the records to the new text file ¡¥result.txt¡¦ New file (result.txt) Au Gigi ag@hotmail.com Chan Cissy cc@yahoo.com Lee Peter lp@doramail.com Ma Tom mt@excite.com So Frankie sf@xoom.com Yum David yd@hongkong.com Name E-mail 1. Au Gigi ag@hotmail.com 2. Chan Cissy cc@yahoo.com 3. Lee Peter lp@doramail.com 4. So Alice sa@xoom.com 5. Yum David yd@hongkong.com 6. http://www.spss.edu.hk/jwong/wsftp32.exe