Textloader generating RuntimeError

how do you load a text file into your notebook using langchain? The text file is saved on my desktop and I am trying to access it using langchains documents_loader but I am getting a runtimeerror.