Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write or BlockWrite

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
I currently use type record.
TDNCFile = file of TDNC;

Tcurve = record
name:array[1..110] of byte;
end;

TcurveFile = file of Tcurve;

I use the write(f,rec) command to write my record.
Should I been using blockwrite instead?
Thanks
PO
 
This question isn't really related to what you are thinking with regard to blockwrite vs. write. It depends on the size of the file and what you are doing with it. If the full extent of TDNCFile is the 110 bytes, then it really isn't going to matter. But if TDNCFile is much larger than a few records, then using blockread/blockwrite with many more records involved will be of benefit. You always want to reduce I/O, if possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top