• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Day 18. Working with Files and Directories > Reading and Writing with <CFFILE>

Reading and Writing with <CFFILE>

<CFFILE>'s read and write ACTIONs enable you to work with plain-text files on your server. They enable you to extract data from text files and to create new text files to hold data a template has obtained from a variable or a query.

Note

<CFFILE>'s read and write ACTIONs work only with plain-text, or ASCII files. They will not work with proprietary, binary formats such those in word-processing documents. A special ACTION, readbinary, will read binary files into a binary ColdFusion object—check your ColdFusion documentation if you need to use this advanced feature.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint