Size of file on target computer
object will be removed in a future release. See the release note for file system commands to
use instead. These commands use the
SimulinkRealTime.openFTP function and the functions for the MATLAB
its file size, and close it again.
Get the file system and open the file
tg = slrt; filesys_object = SimulinkRealTime.fileSystem(tg); file_id = fopen(filesys_object, 'data.dat');
Read the file size.
file_size = getfilesize(filesys_object,file_id)
file_size = 4512
Close the file.
file_size— Number of bytes in the file
This value is the value printed by the