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

Chapter 28. Working with Files and Direc... > Reading and Writing Files with <CFFI...

Reading and Writing Files with <CFFILE>

You have demonstrated the capabilities of <CFFILE> to upload a file to the server, as well as to manipulate files on the local file system by moving, copying, deleting, or renaming them. The last piece of the puzzle is to demonstrate its capability to read and write ASCII files using the <CFFILE> tag. This capability, combined with other constructs available in ColdFusion—looping over the results of a query and evaluating expressions—provides a powerful tool to developers. The next simple example highlights the capability to read and write files.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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