Show: Delphi C++
Display Preferences

Talk:System.Rewrite

From RAD Studio API Documentation
Jump to: navigation, search

If F is assigned an empty name such as AssignFile(F, ), then after the call to Reset, F refers to the standard input file.

If F was assigned an empty name such as AssignFile(F,), then after the call to Rewrite, F refers to the standard output file.

is wrong. Please add "empty string" in 2nd parameter of AssignFile. Proposal is

If F was assigned an empty name such as AssignFile(F, ''), then after the call to Rewrite, F refers to the standard output file.

--Tarisawa (talk) 13:39, 21 March 2014 (PDT)

The check of RecSize error check behaves like the rest of platforms, It would be fine to remark this behaviour. So given this line:

  If RecSize is omitted, a default record size of 128 bytes is assumed.

I would update it as:

  If RecSize is omitted, a default record size of 128 bytes is assumed. If RecSize <=0 it will cause an IO Error 106.

And I would add this line add the end:

  If any IO error is happen, the file is closed. Don't need to call CloseFile.

--Diegoe (talk) 01:20, 25 March 2014 (PDT)

Personal tools
In Other Languages
Previous Versions
Assistance