home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
MARK_WC1.LZH
/
SRC
/
EXAMPLE2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-04-27
|
487b
|
22 lines
/*Use this program to get better aquainted with the MicroEMACS
*interactive screen editor. You can use this text to learn
*some of the more advanced editing features of MicroEMACS.
*/
#include <stdio.h>
main()
{
FILE *fp;
int ch;
int filename[20];
printf("Enter file name: ");
gets(filename);
if ((fp =fopen(filename,"r")) !=NULL) {
while ((ch = fgetc(fp)) != EOF)
putc(ch, stdout);
}
else
printf("Cannot open %s.\n", filename);
fclose(fp);
}