cfclient.file.read

Reading a file

You can read a text file with the read function. The following example shows a simple usage:

<cfset filecontent=cfclient.file.read(“myNewFile.txt”)>

Method summary

read(filename) - Reads the content of a given file

  • returns – Content of file in the form of a string
  • params
    •  filename - Absolute or relative path of the file (including file name)

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online