Friday, November 4, 2011

I/O Under Windows of File Input/Output in C programming

As said earlier I/O in C is carried out using functions present in the library that comes with the C compiler targeted for a specific OS. Windows permits several applications to use the same screen simultaneously. Hence there is a possibility that what is written by one application to the console may get overwritten by the output sent by another application to the console. To avoid such situations Windows has completely abandoned console I/O functions. It uses a separate mechanism to send output to a window representing an application. The details of this mechanism are discussed in Chapter 17.
Though under Windows console I/O functions are not used, still functions like fprintf( ), fscanf( ), fread( ), fwrite( ), sprintf( ), sscanf( ) work exactly same under Windows as well.

No comments:

Post a Comment