Reads an on-disk or in-memory text file or a file object created with the FileOpen function.
fileRead(filePath [, charset | bufferSize])
→ returns string
Uses expandPath to grab a file in current directory.
fileContent = fileRead(expandPath("./file.txt"), "utf-8")
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.