Retrieve a gint32.
pointer to a variable to store the value in
file to read from
0 on success, -1 on error.