Cogito, ergo sum
UE3:FileWriter (UDK)
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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.
Properties
ArchivePtr
Type: pointer{FArchive}
Modifiers: const, native
Internal FArchive pointer
bFlushEachWrite
Type: bool
Whether we should flush to disk every time something is written. if false, only flush when the memory buffer is full or when the file is closed
Default value: True
bWantsAsyncWrites
Type: bool
Whether to use async writes (if available) or not. Overrides bFlushEachWrite
Filename
Type: string
Modifiers: const
File name, created via OpenFile()
FileType
Type: FWFileType
Modifiers: const
Holds the file type for this file.
Default values
Property | Value |
---|---|
CollisionType | COLLIDE_CustomDefault |
Subobjects
Sprite
Class: Engine.SpriteComponent
Inherits from: Info.Sprite
Property | Value |
---|---|
ReplacementPrimitive | None |
Enums
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
Functions
Native functions
CloseFile
Closes the log file.
Logf
Logs the given string to the log file.
Parameters:
- logString - string to dump
OpenFile
Events
Destroyed
Overrides: Actor.Destroyed
Overridden to automatically close the logfile on destruction.