Fopen() - Documentation for Bmc Patrol Agent 22.1

Open a PSL channel to a file. 

Syntax

fopen(filename,mode)

Parameters

Parameter

Definition

filename

name of the file to which the PSL channel should be opened.

mode

file access mode*Valid Values* 
r open for read 
w truncate to zero length for write or create file for write 
a open for append to end of file or create for write 
rb open binary file for read 
wb truncate binary file to zero length for write or create binary file for write 
ab open binary file for append at end of file or create binary file for write 
r+ open for read and write (update) 
w+ truncate to zero length for read and write or create for read and write 
a+ open for read and write at end of file or create file for read and write 
r+b open binary file for read and write (update) 
w+b truncate binary file to zero length for read and write or create binary file for read and write 
a+b open binary file for read and write at end of file or create binary file for read and write

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest