how to type out a file, a variable, raw data, etc in xdotool as people dont like giving out direct answers it seems
its stupid, u literally just add --
to command line :
xdotool type -- 'your data here'
for example
xdotool type -- "$(cat file.txt)"
or
xdotool type -- "$MY_VARIABLE"
enjoy