I'm afraid I don't know Pascal very well, but you should just need to look into what input/output libraries you have available and see what they offer you for disk writing.
There may be a more efficient method (I know very little about Morse code) but since there are only 26 letters you could use a giant if-else if statement.