
November 19th, 2006, 01:56 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: Pennsylvania
Posts: 3
Time spent in forums: 46 m 9 sec
Reputation Power: 0
|
|
Heres what I've got so far.
Code:
#include <stdio.h>
main()
{
int f;
FILE *ptr;
ptr = fopen("testfile.txt","r");
while ((f = fgetc(ptr)) != EOF)
{
printf("%c",f);
}
getch();
fclose(ptr);
}
At the moment it just opens the file, scans it and prints it to the screen.
|