Hey!
I have a problen.
I'm a user of Turbo C++ yes, it's outdated. I know. LOL
SO anyway, i'm supposed to create a program that reads a text document when ran.
so I already have the text document named test.txt located on my desktop.
but when i try to run the program it doesn't display anything. I don't know why.
I've looked everywhere. But I couldn't figure out the problem.
So can you please tell me what's wrong with my code?:
#include<stdio.h>
#include<conio.h>
FILE *myfile;
main();
{
clrscr();
myfile=fopen("C:\Documents and Settings\Migs\Desktop\test.txt","r");
getch();
}
Is there a mistake?