asp.net.ph

Response.WriteFile Method ( String, Boolean )

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
);

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.

Response.WriteFile ( "login.txt", true );
  C# VB

See Also

HttpResponse Members   HttpResponse.WriteFile Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph