c read n bytes code

#include <stdio.h>

int main() {
    char buffer[100];
    int n;
    FILE *file = fopen("input.txt", "r");
    if (file) {
        n = fread(buffer, 1, 50, file);
        fclose(file);
    }
    return 0;
}