File loading with full error handling