User`s guide
fopen
Purpose Open target PC file fo r reading
Syntax MATLAB command line
file_ID = fopen(file_obj,'f ile_name')
file_ID
= file_obj.fop en('file_name')
file_ID = fopen(file_obj
,'file_name',permission)
file_ID
= file_obj.f open('file_name',permission)
Arguments
file_obj
Name of the xpctarget.fs object.
'file_name'
NameofthetargetPCtoopen.
permission
Values are 'r', 'w', 'a', 'r+', 'w+',or'a+'.
This argument is option al with
'r' as the
default value.
Description Method of xpctarget.fs objects. From the host PC, opens the specifie d
filename on the target PC for binary access.
The permission argument values are
•
'r'
Open the file for reading (default). The method does nothing if the
file does not a lready exist.
•
'w'
Open the file for writing. The method creates the file if i t does not
already exist.
•
'a'
Open the file for appending to the file. Initially, the file pointer is at
the end of the file. The method creates the file if it does not already
exist.
•
'r+'
18-20