If I understand your question correctly your file contains bytes whose values are 31, 01, FD, 37, 04 etc and you want to send the instrument the string "31 01 FD 37 04". You can do this conversion with a combination of String to Byte Array and Format Into String, for example:
If I've got your question the wrong way round then CharlesB's answer is correct.