Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: auto delete the files at specefic date and time. Pin
«_Superman_»26-Apr-10 20:25
professional«_Superman_»26-Apr-10 20:25 
GeneralRe: auto delete the files at specefic date and time. Pin
MahaKh26-Apr-10 21:36
MahaKh26-Apr-10 21:36 
GeneralRe: auto delete the files at specefic date and time. Pin
«_Superman_»27-Apr-10 6:26
professional«_Superman_»27-Apr-10 6:26 
AnswerRe: auto delete the files at specefic date and time. Pin
chandu00426-Apr-10 22:20
chandu00426-Apr-10 22:20 
AnswerRe: auto delete the files at specefic date and time. Pin
Maximilien27-Apr-10 0:45
Maximilien27-Apr-10 0:45 
AnswerRe: auto delete the files at specefic date and time. Pin
David Crow27-Apr-10 2:50
David Crow27-Apr-10 2:50 
Questionto find starting point of a waveform Pin
mrby12326-Apr-10 19:52
mrby12326-Apr-10 19:52 
AnswerRe: to find starting point of a waveform Pin
Emilio Garavaglia26-Apr-10 22:29
Emilio Garavaglia26-Apr-10 22:29 
If you mean a file made up by lines (separated by a '\n') each containing two numbers separated by a delimiter, with some spurious character at beginning, you typically need to read the file line by line, then parse each line to identify the presence of certain structural elements (digits, signs, separators etc.)
Once you decide that the line looks OK, you can start to convert the (sub)strings into numbers.

Another technique can make use of a circular buffer.
You read the file to fill in the buffer, check the buffer contents if matching some "prerequisite" (as above), do the required conversion then discard the already read characters, and refill the buffer.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: to find starting point of a seismic or magnatic digital waveform Pin
mrby12326-Apr-10 23:42
mrby12326-Apr-10 23:42 
QuestionRe: to find starting point of a seismic or magnatic digital waveform Pin
David Crow27-Apr-10 4:33
David Crow27-Apr-10 4:33 
AnswerRe: to find starting point of a seismic or magnatic digital waveform Pin
mrby12327-Apr-10 4:47
mrby12327-Apr-10 4:47 
QuestionRe: to find starting point of a seismic or magnatic digital waveform Pin
David Crow27-Apr-10 4:58
David Crow27-Apr-10 4:58 
AnswerRe: to find starting point of a seismic or magnatic digital waveform Pin
mrby12327-Apr-10 5:24
mrby12327-Apr-10 5:24 
QuestionRe: to find starting point of a seismic or magnatic digital waveform Pin
David Crow27-Apr-10 5:36
David Crow27-Apr-10 5:36 
AnswerRe: to find starting point of a seismic or magnatic digital waveform Pin
mrby12327-Apr-10 5:47
mrby12327-Apr-10 5:47 
GeneralRe: to find starting point of a seismic or magnatic digital waveform Pin
David Crow27-Apr-10 6:02
David Crow27-Apr-10 6:02 
GeneralRe: to find starting point of a seismic or magnatic digital waveform Pin
mrby12327-Apr-10 6:08
mrby12327-Apr-10 6:08 
GeneralRe: to find starting point of a seismic or magnatic digital waveform Pin
David Crow27-Apr-10 6:14
David Crow27-Apr-10 6:14 
AnswerRe: to find starting point of a waveform Pin
chandu00426-Apr-10 22:52
chandu00426-Apr-10 22:52 
GeneralRe: to find starting point of a waveform Pin
mrby12326-Apr-10 23:50
mrby12326-Apr-10 23:50 
AnswerRe: to find starting point of a waveform Pin
r.ps27-Apr-10 3:58
r.ps27-Apr-10 3:58 
AnswerRe: to find starting point of a waveform Pin
Alan Balkany27-Apr-10 4:04
Alan Balkany27-Apr-10 4:04 
QuestionPlatform SDK (February 2003) and MFC code [SOLVED] Pin
starreyed26-Apr-10 18:52
starreyed26-Apr-10 18:52 
AnswerRe: Platform SDK (February 2003) and MFC code Pin
Stuart Dootson26-Apr-10 23:55
professionalStuart Dootson26-Apr-10 23:55 
AnswerRe: Platform SDK (February 2003) and MFC code Pin
David Crow27-Apr-10 2:48
David Crow27-Apr-10 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.