My program doesn't have bugs. It just develops random features.

UE3:FileWriter (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT3 Object >> Actor >> Info >> FileWriter

Contents

Package: 
Engine
Direct subclass:
FileLog
This class in other games:
UDK

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

This is a simple class that allows for secure writing of output files from within Script. The directory to which it writes files is determined by the file type member variable.

[edit] Properties

[edit] ArchivePtr

Type: pointer{FArchive}

Modifiers: const, native

Internal FArchive pointer

[edit] Filename

Type: string

Modifiers: const

File name, created via OpenFile()

[edit] FileType

Type: FWFileType

Modifiers: const

Holds the file type for this file.

[edit] Default values

Property Value
CollisionType COLLIDE_CustomDefault

[edit] Subobjects

[edit] Sprite

Class: Engine.SpriteComponent

Inherits from: Info.Sprite

No new values.

[edit] Enums

[edit] FWFileType

Type of file

FWFT_Log 
Created in %GameDir%/Logs
FWFT_Stats 
Created in %GameDir%/Stats
FWFT_HTML 
Created in %GameDir%/Web/DynamicHTML
FWFT_User 
Created in %GameDir%/User
FWFT_Debug 
Created in %GameDir%/Debug

[edit] Functions

[edit] Native functions

[edit] CloseFile

native final function CloseFile ()

Closes the log file.

[edit] Logf

native final function Logf (coerce string logString)

Logs the given string to the log file.

Parameters:

  • logString - string to dump

[edit] OpenFile

native final function bool OpenFile (coerce string InFilename, optional FWFileType InFileType, optional string InExtension, optional bool bUnique, optional bool bIncludeTimeStamp)

Opens the actual file using the specified name.

Parameters:

  • fileName - name of file to open
  • extension - optional file extension to use, defaults to .txt if none is specified

[edit] Events

[edit] Destroyed

event Destroyed ()

Overrides: Actor.Destroyed

Overridden to automatically close the logfile on destruction.