Skip to content

M_CodeJam_IO_TempData_CreateFile_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

TempData.CreateFile Method (String, String)

Creates temp file and return disposable handle.

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

Syntax

C#

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

VB

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

F#

static member CreateFile : 
        dirPath : string * 
        fileName : string -> TempData.TempFile 

Parameters

 

dirPath
Type: System.String
The dir path.
fileName
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