[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Binary Data File handling...

Hi all,

    I have a program that captures Binary data(ECG) from a medical system and stores that onto the local hard disk.
Now i want to write a program that would store the data on local harddisk and transfer the data on some other PC on network. The applocation works on DOS and i have made Dos networkenable.
What i need to do is to first store the data on local harddisk then transfer the data on other system on network say after 30 secs and then delete the Data from local harddisk .
Im writing the code and it would help me if someone give s me some guidance on this.

cheers

harry

0
b_harpal
Asked:
b_harpal
1 Solution
 
TriskelionCommented:
What part is not written?
1) Do you have the capability to store the data on a network drive or must it be transferred directly?

2) Are you using TCP/IP or some other protocol?

3) Does the other computer have the same networking protocol installed?

4) Can you also use C++ to do this or does it have to be only C?
0
 
b_harpalAuthor Commented:
I have written the code to store the data directly on the local hard disk. And also i have successfully tested that the data can be Directly transfered on other system using TCP/IP. Now what i want to do is store the data temporarily on local disk and then transfer it to other system on network after,say, every 30 secs. And delete the data from local disk which is transfered. That is, i don't want to directly transfer data to other system.
This is in pure 'c'.

cheers
0
 
wyllikerCommented:
if you use fwrite and fread for accessing the local file you should be just fine.  Just remember to use an unsigned char buffer when reading and writing a binary stream - unless you are mapping through a structure - in which case you have to be careful about the structure packing.

0
 
bearwareCommented:
If this is a medical system I dont think you should be using dos. Also you will have to ensure the integrity of you data.

Have a look at the FDA site for more info.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now