Instead of writing to the window to fill a memory screen, you can fill a memory screen with the text from a text file. To do this, call the memory screen read function, ms_rd():
|
||
|
|
|
|
|
|
First the memory screen is cleared with spaces using the clear attribute specified for the memory screen. The characters from the disk file are written to the memory screen without changing the attribute.
Note: Because of the C convention of using the backslash as an escape character to introduce special characters (such as '\t' for tabs), use two backslashes in PCDOS path names (e.g., "c:\\temp\\screen.txt").