Framework EDI Reference. GetDirectorys and Properties
ediFileSystem. CreateTempFile

Creates a temporary file.

Syntax:

Parameters:

Returns:

Returns the full file path of the temporary file created.

Remarks:

Framework EDI will not delete the created temporary file.  It is up to the calling process to delete the temporary file as part of its cleanup process.

 

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
Dim sTemporaryFile As String

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem

' Create temporary file.
sTemporaryFile = oFileSystem.CreateTempFile("~p")

MsgBox "Temporary file created is " & sTemporaryFile

' Delete temporary file after use.
oFileSystem.DeleteFile sTemporaryFile

Samples