Data sharing by files

Two or more applications (in the networks or on one computer) can also share data by means of file sharing. Both applications must know the exact file format. In many cases this is the only practical way of the data transfer.

The disadvantage of this data transfer is the impossibility to invoke events in the other application based on change of the data file. This means that when the first application writes into the file then the other application doesn't know about it. The change is found out only when the other application reads the file itself or when the first application informs it by another way.

The other even greater disadvantage is the unreliability of disk operations in the computer networks. File sharing in the network is slow and on the outage of the remote computer the unsuccessful access can take too long. Thus on the network disk operations it is good at fist to find out the presence of the remote PC in the network, for example by the Pm.NetTestPC method.

Read or write data into a file in the PROMOTIC system can be made by methods of the object in the Pm variable:
- Methods that read/write data in the Windows *.INI file or CSV file:
- For read and write into the CSV file by DtiOper interface see Preconfigurations CSV files data sources
- Methods that read/write data in the binary form:
- Methods that read/write data in the text form:
- Methods that create/change folders, get file properties, etc.:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice