| | |
Grabbing and reading text file
![]() |
•
•
Join Date: Apr 2007
Posts: 2
Reputation:
Solved Threads: 0
Hello...
i want to grab the currency value from bloomberg, this is a part of bloomberg html. I want to get USD-SGD value, in this time the value is 1.5198. How can i grab it using c language?
please help me, because after this, i will translate to dynamic c...
thanks in advance
i want to grab the currency value from bloomberg, this is a part of bloomberg html. I want to get USD-SGD value, in this time the value is 1.5198. How can i grab it using c language?
please help me, because after this, i will translate to dynamic c...
C Syntax (Toggle Plain Text)
<td bgcolor="#D2E1E8">NZD-USD</td> <td bgcolor="#D2E1E8" align="right">0.7388</td> <td bgcolor="#D2E1E8" align="right"> <span class="changedown">-0.0032</span></td> <td bgcolor="#D2E1E8" align="right"> <span class="changedown">-0.4313%</span></td> <td bgcolor="#D2E1E8" align="right">00:23</td> </tr> <tr> <td bgcolor="white">USD-SGD</td> <td bgcolor="white" align="right">1.5198</td> <td bgcolor="white" align="right"> <span class="changeup">0.0038</span></td> <td bgcolor="white" align="right"> <span class="changeup">0.2540%</span></td> <td bgcolor="white" align="right">00:23</td></tr> [FONT=verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif]
You could write a full-blown HTML parser, you could use somebody else's HTML parser, or you could use a cheapo solution that looks for strings like NZD-USD and walks their way forward through values.
And you'll need to grab the page from the webserver, too.
I'm not sure what you're asking -- is there some particular part of this process you need help with?
And you'll need to grab the page from the webserver, too.
I'm not sure what you're asking -- is there some particular part of this process you need help with?
All my posts may be redistributed under the GNU Free Documentation License.
![]() |
Similar Threads
- C++ Reading from a text file (C++)
- Help with a 2D array from a text file (C++)
- read text file (C)
- Reading in a text file string is not complete (Pascal and Delphi)
- reading txt file into array (C++)
Other Threads in the C Forum
- Previous Thread: finding prime numbers that add up to even number?
- Next Thread: Having to enter a command many times for one action.
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






