Using system; using system. collections. generic; using system. io; namespace script Generation Program {static public class processasourcefile {static private bool isspacechar (char c) {return c = ''| C = '\ T ';} static private string getnextword (string Aline, ref int startindex) {string word = ""; while (startindex! = Aline. length) {If (isspacechar (Aline [startindex]) {If (WORD = ""); else {++ startindex; break ;}} else word + = Aline [startindex]; ++ startindex;} return word;} static private bool istheendoffile (string Aline) {If (Aline = NULL | Aline = "\ n") return true; else return false;} static public streamreader openasourcefile (fileinfo) {streamreader reader = fileinfo. opentext (); retu Rn reader;} static public void leapfrogexplanation (streamreader reader) {reader. readline ();} static public bool readadatacellsuccessfully (streamreader reader, ref datacell sourcedatacell) {string Aline = reader. readline (); If (istheendoffile (Aline) return false; int indexofkeyinfo = 0; int I = 0; while (I! = Aline. length) {sourcedatacell. setkeyinfo (indexofkeyinfo, getnextword (Aline, Ref I); ++ indexofkeyinfo;} return true;} static public void closeasourcefile (streamreader reader) {reader. close ();}}}