code: from llama_index.readers.file import FlatReader
  from pathlib import Path
  
  reader = FlatReader()
  document = reader.load_data(Path("files/sample_document1.txt"))
  
  print(f"Metadata: {document[0].metadata}")
  print(f"Text: {document[0].text}")
  
  
apis: llama_index.readers.file.FlatReader
extract_api: [((83, 95), 'llama_index.readers.file.FlatReader', 'FlatReader', ([], {}), '()\n', (93, 95), False, 'from llama_index.readers.file import FlatReader\n'), ((124, 158), 'pathlib.Path', 'Path', (['"""files/sample_document1.txt"""'], {}), "('files/sample_document1.txt')\n", (128, 158), False, 'from pathlib import Path\n')]