Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba20-Dec-07 3:51
Cabomba20-Dec-07 3:51 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Iain Clarke, Warrior Programmer20-Dec-07 23:56
Iain Clarke, Warrior Programmer20-Dec-07 23:56 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba14-Jan-08 19:21
Cabomba14-Jan-08 19:21 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Iain Clarke, Warrior Programmer14-Jan-08 21:52
Iain Clarke, Warrior Programmer14-Jan-08 21:52 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba19-Jan-08 5:25
Cabomba19-Jan-08 5:25 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
William Engberts17-Dec-07 23:01
William Engberts17-Dec-07 23:01 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba18-Dec-07 19:45
Cabomba18-Dec-07 19:45 
GeneralRe: How to read only the integer value of a txt file in C++ [modified] Pin
David Crow18-Dec-07 3:26
David Crow18-Dec-07 3:26 
When you read a line from the file containing "Value =", just skip to the 19th position of that line and read the remainder of it as an int.

Another option might be to skip to the end of the file, go backward 3 bytes, and read the integer from there.

Of course these will fail in many different ways, but since you did not provide any other requirements or constraints, better solutions were withheld.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba18-Dec-07 20:29
Cabomba18-Dec-07 20:29 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
David Crow19-Dec-07 2:31
David Crow19-Dec-07 2:31 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
Cabomba20-Dec-07 3:45
Cabomba20-Dec-07 3:45 
GeneralRe: How to read only the integer value of a txt file in C++ Pin
David Crow20-Dec-07 3:59
David Crow20-Dec-07 3:59 
GeneralUsing Wininet - Internetopenurl is not working in proxy environment Pin
Ravi Jadhav17-Dec-07 20:18
Ravi Jadhav17-Dec-07 20:18 
GeneralCalculate the number of times a character occurs in a string Pin
littlecheer17-Dec-07 20:11
littlecheer17-Dec-07 20:11 
GeneralRe: Calculate the number of times a character occurs in a string Pin
Nelek17-Dec-07 21:31
protectorNelek17-Dec-07 21:31 
GeneralRe: Calculate the number of times a character occurs in a string Pin
pierre_ribery18-Dec-07 0:51
pierre_ribery18-Dec-07 0:51 
GeneralRe: Calculate the number of times a character occurs in a string Pin
pierre_ribery18-Dec-07 0:52
pierre_ribery18-Dec-07 0:52 
Generalrun only single instant of application Pin
trioum17-Dec-07 19:00
trioum17-Dec-07 19:00 
GeneralRe: run only single instant of application Pin
Kiran Pinjala17-Dec-07 19:54
Kiran Pinjala17-Dec-07 19:54 
GeneralRe: run only single instant of application Pin
Peter Weyzen17-Dec-07 20:52
Peter Weyzen17-Dec-07 20:52 
GeneralRe: run only single instant of application Pin
Iain Clarke, Warrior Programmer17-Dec-07 23:50
Iain Clarke, Warrior Programmer17-Dec-07 23:50 
GeneralRe: run only single instant of application Pin
David Crow18-Dec-07 3:32
David Crow18-Dec-07 3:32 
QuestionHow to control one application from another application Pin
s196675m17-Dec-07 18:46
s196675m17-Dec-07 18:46 
AnswerRe: How to control one application from another application Pin
CPallini17-Dec-07 21:37
mveCPallini17-Dec-07 21:37 
GeneralHelp regarding MSI serial key validation Pin
anu8117-Dec-07 18:46
anu8117-Dec-07 18:46 

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.