get first few characters in a file

head -c 50 file
This returns the first 50 characters of the file ‘file’