DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CloseFile()

proto void CloseFile ( FileHandle file)

Close the File.

Аргументы
fileFile handle ID of a opened file
Возвращает
void
usage :
FileHandle file = OpenFile("$profile:testiik.txt", FileMode.WRITE);
if (file != 0)
{
FPrintln(file, "line1");
FPrintln(file, "line2");
FPrintln(file, "line3");
CloseFile(file);
}
FileMode
Определения EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
int[] FileHandle
Определения EnSystem.c:390
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.

Используется в Debug::ClearLogs(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), GetControlMappingInfo(), UIScriptedMenu::GetControlMappingInfo(), JsonFileLoader< Class T >::JsonLoadFile(), JsonFileLoader< Class T >::JsonSaveFile(), JsonFileLoader< Class T >::LoadFile(), PluginBase::LoadFile(), MissionBenchmark::OnBenchmarkEnd(), ScriptConsoleOutputTab::ReloadOutput(), JsonFileLoader< Class T >::SaveFile(), PluginBase::SaveFile(), Debug::SaveLog(), AutoTestFixture::SaveXMLReport(), EnochData::WeatherOnBeforeChange(), SakhalData::WeatherOnBeforeChange() и WorldData::WeatherOnBeforeChange().