FileUp's UploadContents property can return the contents of an uploaded file as a safe array of variants, which is the only type of array suitable for the ASP scripting environment. The code sample below demonstrates how to access the contents of an uploaded *.txt file through this type of array.
Note: It is normally preferable to access the contents of a *.txt file through a variant of the type "string", however, for the sake of demonstrating the storage structure of a variant array, we've choosen to upload a simple text file so that ASP's Response.Write method can return human-readable characters to the browser. |