Richard R wrote: > I just thought that maybe the resize isn't a "record size" but rather how > many records are being read at one time? It's very confusing.
The record size determines how many bytes you're talking about when you tell BlockRead or BlockWrite to operate on a file. Those functions work with records, but they don't inherently know how big a record is. A record in a file is of a constant size. You specify that size when you call Append, Reset, or Rewrite. Then, you tell BlockRead and BlockWrite how many records to use -- that's the Count parameter. People don't tend to use that feature, though, since most files contain records of variable sizes. It might not even make sense to talk abou the file as being composed of records. For that reason, we usually specify 1 as the record size, which allows us to treat the file as just a sequence of bytes. Each byte makes up a single record, in that case. If the file really is a sequence of records, then use a typed file instead of an untyped file. -- Rob __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
