i can understand the rest of the code except
fp=fopen("Test","r");
fp is the file pointer what does fopen() do