Solved

Binary Data File handling...

Posted on 2002-03-15
4
190 Views
Last Modified: 2010-04-15
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
Comment
Question by:b_harpal
4 Comments
 
LVL 6

Expert Comment

by:Triskelion
Comment Utility
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
 

Author Comment

by:b_harpal
Comment Utility
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
 
LVL 4

Accepted Solution

by:
wylliker earned 200 total points
Comment Utility
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
 
LVL 1

Expert Comment

by:bearware
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now