xPCFileInfo Class

Access to file and xPCFileStream objects


public class xPCDriveInfo


Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public class xPCDriveInfo accesses information on a target computer drive.

There are the following limitations:

  • You can have at most eight files open on the target computer at the same time.

  • The largest single file that you can create on the target computer is 4 GB.

  • A fully qualified folder name can have a maximum of 248 characters, including the drive letter, colon, and backslash.

  • A fully qualified file name can have a maximum of 260 characters: The file part can have at most 12 characters: eight for the file name, one for the period, and at most three for the file extension. A file name longer than eight characters is truncated to six characters followed by '~1'.

  • Do not write data to the private folder on your target computer. It is reserved for Simulink® Real-Time™ internal use.


xPCFileInfoConstruct new instance of xPCFileInfo class


xPCFileInfo.CopyToHostCopy file from target computer file system to development computer file system
xPCFileInfo.CreateCreate file in specified path name
xPCFileInfo.DeletePermanently delete file on target computer
xPCFileInfo.OpenOpen file
xPCFileInfo.OpenReadCreate read-only xPCFileStream object
xPCFileInfo.RenameRename file


PropertyC# Declaration SyntaxDescription


public xPCDirectoryInfo Directory {get;}

Get an xPCDirectoryInfo object.


public string DirectoryName {get;}

Get a character string that represents the full folder path name.


public override bool Exists {get;}

Get value that indicates whether a file exists.


public long Length {get;}

Get the size, in bytes, of the current file.


public override string Name {get;}

Get the name of the file.

Introduced in R2011b

Was this topic helpful?