Ejemplo n.º 1
0
        public void Generate(int amount, int max)
        {
            int record;

            df.OpenSaveStream("MainFile.txt");
            for (int i = 0; i < amount; i++)
            {
                record = random.Next(1, max);
                df.SaveRecord(record, "MainFile.txt");
            }
            df.FlushRecordBuffer("MainFile.txt");
            df.CloseStream("MainFile.txt");
            df.ZeroWriteOp();
        }