This documentation is archived and is not being maintained.
HttpResponse.WriteFile Method (String, Boolean)
.NET Framework 1.1
Writes the contents of the specified file into a memory block.
[Visual Basic] Overloads Public Sub WriteFile( _ ByVal filename As String, _ ByVal readIntoMemory As Boolean _ ) [C#] public void WriteFile( string filename, bool readIntoMemory ); [C++] public: void WriteFile( String* filename, bool readIntoMemory ); [JScript] public function WriteFile( filename : String, readIntoMemory : Boolean );
Parameters
- filename
- The name of the file to write into a memory block.
- readIntoMemory
- Indicates whether the file will be written into a memory block.
Example
The following example writes a file to memory.
[Visual Basic] Response.WriteFile("login.txt", True) [C#] Response.WriteFile("login.txt", true); [C++] Response->WriteFile(S"login.txt", true); [JScript] Response.WriteFile("login.txt", true)
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpResponse Class | HttpResponse Members | System.Web Namespace | HttpResponse.WriteFile Overload List
Show: