Taking this task literally, any program which knows about records is not suitable. We need to read the raw file.
My solution to getting the first three characters of a file no matter what they are is:
dd bs=3 count=1 if=input_file of=output_file
We have avoided putting the characters in a shell variable because we don't know what they are.
Program "cut" is unsuitable if one of the characters is a linefeed for example.