예제 #1
0
        public virtual void  update(DBase3Record rec, int row)
        {
            long idx = hdrSize + row * recordSize;

            db.Seek(idx, System.IO.SeekOrigin.Begin);
            SupportClass.RandomAccessFileSupport.WriteRandomFile(rec.Bytes, db);
        }
예제 #2
0
        public static void  Main1(System.String[] args)
        {
            DBase3       db  = new DBase3("dbase3.dbf", false);
            DBase3Record rec = null;

            for (int i = 0; i < db.NumRecords; i++)
            {
                rec = db.read(i);
                //UPGRADE_TODO: Method 'java.io.PrintStream.println' was converted to 'System.Console.WriteLine' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073"'
                System.Console.Out.WriteLine(rec);
            }
            //UPGRADE_TODO: Method 'java.io.PrintStream.println' was converted to 'System.Console.WriteLine' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073"'
            System.Console.Out.WriteLine(rec);
        }
예제 #3
0
 public virtual void  write(DBase3Record rec)
 {
     db.Seek(db.Length, System.IO.SeekOrigin.Begin);
     SupportClass.RandomAccessFileSupport.WriteRandomFile(rec.Bytes, db);
     numRecords++;
 }