#include <stdio.h>
int main() {
char str[100];
FILE *fp;
int i, j;
fp = fopen("smpl.txt", "r");
fgets(str, sizeof(str), fp);
i = j = 0;
while (str[i] != '\0') {
if (str[i] == '\\' && str[i+1] == 'n') {
str[j++] = '\n';
i += 2;
} else {
str[j++] = str[i++];
}
}
str[j] = '\0';
printf("%s", str);
}