Update Receive.c

Added FileExists function
Added Write file function