System.Web Namespace HttpResponse Class
Writes the contents of the specified file into a memory block.
[ VB ]
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
);
- filename
- The name of the file to write into a memory block.
- readIntoMemory
- Indicates whether the file will be written into a memory block.
The following example writes a file to memory.
Response.WriteFile ( "login.txt", true );
Response.WriteFile ( "login.txt", True ) |
|
C# |
VB |
HttpResponse Members HttpResponse.WriteFile Overload List