public short ReadLine(ref string fname)
        {
            short functionReturnValue = 0;

            Scripting.FileSystemObject oFSO  = new Scripting.FileSystemObject();
            Scripting.TextStream       oFSTR = default(Scripting.TextStream);
            int ret  = 0;
            int lCtr = 0;

            if (oFSO.FileExists(fname))
            {
                oFSTR = oFSO.OpenTextFile(fname);
                while (!oFSTR.AtEndOfStream)
                {
                    lCtr = lCtr + 1;
                    oFSTR.SkipLine();
                }
                functionReturnValue = lCtr;
                oFSTR.Close();
                oFSTR = null;
            }
            return(functionReturnValue);
        }
        public short ReadLine(ref string fName)
        {
            short functionReturnValue = 0;

            Scripting.FileSystemObject oFSO  = new Scripting.FileSystemObject();
            Scripting.TextStream       oFSTR = default(Scripting.TextStream);
            //Dim ret As Integer
            int lCtr = 0;

            if (oFSO.FileExists(fName))
            {
                oFSTR = oFSO.OpenTextFile(fName);
                while (!oFSTR.AtEndOfStream)
                {
                    lCtr = lCtr + 1;
                    oFSTR.SkipLine();
                }
                functionReturnValue = lCtr;
                oFSTR.Close();
                //UPGRADE_NOTE: Object oFSTR may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
                oFSTR = null;
            }
            return(functionReturnValue);
        }