Convert file to integer decimal form