prg_file_path_create()

Abstract

Creates a file with the given name and path.

Syntax

prg_file_path_create (path_name, options)
Argument Type Description
path_name const char * Full path name of the file to create.
options int Bit mask of supported options (see Details)

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the path was created successfully; PrgC_Compcode_Failure otherwise.

prg_file_funcs.h

Details

This function converts path_name to the correct OS format, if necessary (changing “/” and “\” as needed), then creates an empty file with write permission. If the specified directory hierarchy does not exist, it is created. An existing file of the same name will be overwritten.

options should be one of the following symbolic constants:

  • PRGC_FILE_PATH_CREATE_OPT_NONE—no options
  • PRGC_FILE_PATH_CREATE_OPT_DIRECTORY—create a directory instead of a file

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com