Skip to content

M_CodeJam_IO_TempData_CreateFile_1

andrewvk edited this page Jul 1, 2016 · 9 revisions

TempData.CreateFile Method (String, String)

Creates temp file and return disposable handle.

Namespace: CodeJam.IO
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static TempData.TempFile CreateFile(
	string dirPath,
	string fileName = null
)

VB

Public Shared Function CreateFile ( 
	dirPath As String,
	Optional fileName As String = Nothing
) As TempData.TempFile

F#

static member CreateFile : 
        dirPath : string * 
        ?fileName : string 
(* Defaults:
        let _fileName = defaultArg fileName null
*)
-> TempData.TempFile 

Parameters

 

dirPath
Type: System.String
The dir path.
fileName (Optional)
Type: System.String
Name of the temp file.

Return Value

Type: TempData.TempFile
Temp file to be freed on dispose.

Exceptions

 

Exception Condition
ArgumentNullException dirPath is null.

See Also

Reference

TempData Class
CreateFile Overload
CodeJam.IO Namespace

Clone this wiki locally