getTextFromFile()
Reads a file as text using the provided encoding.
Example:
ts
const text = await getTextFromFile(file, 'utf-8');Reads a file as text using the provided encoding.
Example:
const text = await getTextFromFile(file, 'utf-8');