codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  how read floating data from notepad and analysis it  pojie_yana at 07:56 on Thursday, September 15, 2005
 

hi....
now I am doing my final project, where need to read ecg data from notepad and interpret it...

in my project,the step required are :
1. read data.
2. filtering.
3. derivative.
4. dtection of QRS complex.

for infomation, i got all the program for filtering, derivative and detection. but the problem is i dont know how input to call the data from notepad...

please help me...
thank you...


  Re: how read floating data from notepad and analysis it  Yusairi at 03:04 on Thursday, September 22, 2005
 

hi pojie_yana,

the data in text format (can be open via notepad)
should be standardize and it will be easy for you
to extract it and insert into database before you
are starting for analysis.

this is some sample you can adapt on your code.
GOOD LUCK.

// reading a text file
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>

int main () {
char buffer[256];
ifstream examplefile ("/forum/example.txt");
if (! examplefile.is_open())
{ cout << "Error opening file"; exit (1); }

while (! examplefile.eof() )
{
examplefile.getline (buffer,100);
cout << buffer << endl;
}
return 0;
}





© Copyright codetoad.com 2001-2005