Added ReadType Function

Added ReadType function to determine whether the user is performing a direct (text) entry or is doing a food (file) entry.