>fp = fopen(file_location, "r")

fp = fopen(file_location, "rb")
とりあえずここはこうじゃないの?