Esempio n. 1
0
        public static DbfFile Open(string path)
        {
            DbfFile file = new DbfFile(
                File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read), false);

            return(file);
        }
Esempio n. 2
0
        public static DbfFile Append(string path)
        {
            DbfFile file = new DbfFile(
                File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read), false);

            // Seek to end of file
            file._stream.Seek(file._stream.Length - 1, SeekOrigin.Begin);

            return(file);
        }