0

I am writing a c++ program that uses cURL and I am trying to read from a php file on a site into an integer variable. I found a post that is similar but I am having trouble adapting that to use an integer variable.

Any help would be very appreciated.

Community
  • 1
  • 1
James
  • 190
  • 1
  • 4

1 Answers1

1

Read into a string, then use atoi().

Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
  • Welcome to SO. Instead of saying "thanks", here at SO we click the checkmark next to the right answer. :) This is called "Accepting". – Seva Alekseyev Feb 18 '11 at 19:30