You're using fscanf to read and passing "% s" as a parameter, what does that mean? You are reading a word from the last file in fscanf. How to solve this? Using functions to read an entire line, such as: fgets ( link ) or by modifying its parameter in scanf to "% [^ \ n] s "which means" read until you find a \ n ".
Your code with the fix:
void LerArquivo()
{
FILE *fp;
char string2[100];
int i=0,size;
fp=fopen("PoxaProfessor.txt","r+");
if(fp==NULL)
{
printf("Arquivo nao pode ser aberto");
}
fscanf(fp,"%[^\n]s",string2);
size=strlen(string2);
printf("%s",string2);
printf("\nNumeros de Caracteres: %d",size);
printf("\nCincos Primeiros Caracteres: ");
while(i<5)
{
printf("%c",string2[i]);
i++;
}
fclose(fp);
}