//**************************************// // Name: A Program That Types Its Source// File// Description:A program that types it's// source file using file i/o routines. Gre// at for programming tutorials. Please vot// e for it. Inspired by .rad// By: Brenton Andrew Saunders////This code is copyrighted and has// limited warranties.Please see http://// www.Planet-Source-Code.com/vb/scripts/Sh// owCode.asp?txtCodeId=8818&lngWId=3//for details.//**************************************// #include <windows.h>#include <stdio.h>void main() { FILE *lpFile; char lpszString[256]; lpFile = fopen(__FILE__, "r"); if(!lpFile) return; while(!(feof(lpFile))) { fgets(lpszString, 256, lpFile); printf(lpszString); } fclose(lpFile); }