Filesystem SPIFFS - end of file after open

I’m not 100% sure but

    ESP_LOGI(TAG, "Open eof file_p %d", feof(file_p));

should be

    ESP_LOGI(TAG, "Open eof file_p %d", feof(*fp));