Talk:Standard Routines and Input-Output

From RAD Studio
Jump to: navigation, search

On this note,


Note: BlockRead, BlockWrite and FillChar have untyped parameters, and that can be the source of memory corruption.To avoid this, use newer function. Is preferable to use streams.


FillChar has not been replaced by streams. BlockRead and BlockWrite have a particular dependency on parameters passed to Reset() and Rewrite() that must be carefully considered to avoid inadvertant memory corruption. Streams are recommended in general over the older file-handling functions to give the programmer the greatest level of flexibility and functionality.

Should say "TStreamReader and TStreamWriter" instead of "TTextReader and TTextWriter"

The page says, "For text-file handling, TTextReader and TTextWriter are recommended over calling Write and Writeln." But, TTextReader and TTextWriter are abstract. So, one really has to use TStreamReader and TStreamWriter. Davidmarcus 11:59, 1 April 2012 (PDT)

Response

We have added this issue to our work queue.

Many thanks for your contribution to the RAD Studio documentation!

KrisHouser 15:51, 2 April 2012 (PDT)

RAD-10708