I'm not sure to use sendmessage or sendkeys with the following questions but anyways here they are:

1.) How can I use sendkeys/sendmessage to send all the text from a .txt file?

2.) How can I use sendkeys/sendmessage to send two backspaces and then the words "this is a test" and then the "enter" key?

Thanks.