BEGIN_TESTF(DeleteFileShouldDeleteFileIfNotReadOnly, DeleteFileFixture) { WIN_ASSERT_WINAPI_SUCCESS(DeleteFile(s_tempFileName)); WIN_ASSERT_FALSE(IsFileValid(s_tempFileName), _T("DeleteFile did not delete %s correctly."), s_tempFileName); }
double* Signal::ReadFile(const wchar_t* name) { wcscpy(EcgFileName, name); if (!IsFileValid(name)) return 0; if (IsBinFile) { if (!ReadDatFile()) return 0; } else { if (!ReadTxtFile()) { //read text file if (!ReadMitbihFile()) //read mit-bih file return 0; } } return GetData(); }