File:  [MW Coherent from dump] / coherent / a / usr / src / sample / example2.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*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);
}		

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.