Reads a text or serialized file containing integers then sorts and prints integers.