Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than msvcrt, prefix the name with the module name and a period.
freopen (msvcrt)
.
C# Signature:
[DllImport("msvcrt.dll", SetLastError=true)]
static extern TODO freopen(TODO);
VB Signature:
Declare Function freopen Lib "msvcrt.dll" (ByVal filename As String, ByVal mode As String, ByVal stream As IntPtr) As IntPtr
User-Defined Types:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
Mode can be any of the following:
"r" - Open a file for reading. The file must exist.
"w" - Create an empty file for writing. If a file with the same name already exists its content is erased and the file is treated as a new empty file.
"a" - Append to a file. Writing operations append data at the end of the file. The file is created if it does not exist.
"r+" - Open a file for update both reading and writing. The file must exist.
"w+" - Create an empty file for both reading and writing. If a file with the same name already exists its content is erased and the file is treated as a new empty file.
"a+" - Open a file for reading and appending. All writing operations are performed at the end of the file, protecting the previous content to be overwritten. You can reposition (fseek, rewind) the internal pointer to anywhere in the file for reading, but writing operations will move it back to the end of file. The file is created if it does not exist.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).