output from a function to a file

Results 1 to 2 of 2

Thread: output from a function to a file

  1. #1
    Michel Counotte Guest

    Default output from a function to a file

    Hi there!<BR><BR>How can i save data from a function to a file. I know how to save strings to files, but how to do this with a function like:<BR><BR>Function test<BR>%&#062;this data must be stored in a ASP-file&#060;%<BR>End Function<BR><BR>of course the amount of data i want to save is much larger, and useses a lot of quotes and %-signs...<BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: output from a function to a file

    How about this:<BR><BR>Function GenerateText(sName)<BR> GenerateText = sName & " is in Florida!" & "<BR>"<BR>End Function<BR><BR>TextToSaveToFile = GenerateText("Brian")<BR><BR>This would assign the results from the function to the variable "TextToSaveToFile"<BR><BR>Hope this helps if not give a little more detail or an example of use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts