Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stringtokenize problem  RSS feed

 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to get extract the key pair value from the following file
the file looks. sample.file
COD-Vendor: abcd
COD-Install: http://xyz.com
COD-Name: You
COD-Size: 521
COD-URL: http://codurl.com
am able to extract the name n value pair by using stringtokenizer":". but
in the "http:" value is not giving correct output.
Can you pls guide me how to solve this.
Thanks
jowsaki
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about something like:

[ March 20, 2003: Message edited by: Jim Yingst ]
 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks JIm..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!