Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Save the file in the server's pc

in the system have client and server. In the client's pc, and randomly generated value will saved in the text file. How to save the text file in the server side if im using XP default to link this two pc. Is it have to change any coding in the CFile?
0 Kudos
Message 1 of 2
(2,847 Views)
There are multiple approaches, depending on your machine locations, the structure of your application, etc. The client could save the file via CFile if the client is going to write the file to an accessible network share on the server. This might be feasible in an intranet scenario.

Another approach is that you could run a DataSocket server and write the values to a URL on the DataSocket server from the client. Then you could have a DataSocket reader application that runs on the server. The reader application could listen for the DataUpdated event on the DataSocket connection to the data item that the client is writing to, then when the data is updated the reader application could write the data to a file on the server.

- Elton
0 Kudos
Message 2 of 2
(2,847 Views)