CodePudding user response:
Is there any FileCloseCodePudding user response:
See whether you read correctly to the first data, a print, and then written to the file if there is a mistakeCodePudding user response:
LRESULT CPowerweightDlg: : OnUpdateEditMsg (WPARAM WPARAM, LPARAM LPARAM)
{
Cstrings angleData1, newLine="\ r \ n";
AngleDataFile1. SeekToEnd ();//file pointer to the end-of-file
AngleData1. The Format (" % f ", m_load_pv);
AngleDataFile1. Write (angleData1, 6);//write
AngleDataFile1. Write (newLine, 2);//line breaks
The UpdateData (FALSE);
return 0;
}
CodePudding user response:
Thank you, no problem on this code in a program, to simply create the TXT file on another program, TXT files are 0 KBCodePudding user response:
A program only read the tension sensor data that can, another program was originally read a grating ruler of the serial port data, then I read it with tension sensor code and create a file of the program, the data can be displayed on the ntgraph graphics controls, but cannot write on the TXT fileCodePudding user response: