Ya lots of ideas :
1> You could make use of code tags which would have made this post better.Read this .Or just click # on right top corner.
2> You could stop using extinct files like
And ya mainly :
3>If you are using TC and doing something like this :
fopen ("f:\text.txt" , "r");
Then you will face problems.Yoiu cannot just access any part of the file system.Just as you wish.Well if you want to try place that text file of yours inside bin of TC and try as
fopen ("text.txt" , "r");
4>More over the "\t" in your file name can cause you a problem so try "\\t" just in order to remove the special meaning of "\" within quotes.