Subj : Re: DOS question To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Sat Jul 12 2003 08:43 am I assume that PowerC is the old Mix C. You have not specified what the calling arguments to the function are. I assume that it doesn't have any so only returns the item at where the cursor currently is located. Here is an implementation of a readch such as you describe. The function is not very useful. You really should read the compiler's documentation rather than trying to force it into the Mix C mold. ----------------------------- #include #ifdef __cplusplus extern "C" #endif int readch(void) { int result; int x = wherex(), y = wherey(); gettext(x, y, x, y, &result); return result; } ----------------------------- .. Ed > Rob C wrote in message > news:3f0f14c9$1@newsgroups.borland.com... > > I have used powerC (DOS) for many years. There is a function > in powerC called ‘readch();’ that reads the characters and > attributes currently on the screen, which I then take and store > in a file. I’m now using the DOS (standard) platform of Borland > C++ 5.02 and am asking what function I would use to perform > that same operation. (Could you please instruct me, too, so that I > could look these types of things up on my own in the future.) .