From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: need a little string hint...
Date: Mon, 28 Feb 2005 17:26:21 +0100
Date: 2005-02-28T17:26:21+01:00 [thread overview]
Message-ID: <4223462d$0$30168$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <1109606915.447479.184780@l41g2000cwc.googlegroups.com>
mferracini wrote:
> i need to read from a file "config.sys" host&port number.
> but i have a problem with host...
>
> if i call: Get_Host_By_Name ("localhost") it work fine,
> i i use the string read from the file don't work.
what happens if you try Get_Host_By_Name ("localhost ") ?
in your file, you read the host but discard the value of Last after
the call, this value holds the length of the input string. so your
string does not contain "localhost" but "localhost__________" (replace
'_' by ' ').
(it may not be the problem, but i can't test it)
--
rien
next prev parent reply other threads:[~2005-02-28 16:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-28 16:08 need a little string hint mferracini
2005-02-28 16:26 ` Adrien Plisson [this message]
2005-02-28 16:49 ` mferracini
2005-02-28 16:53 ` Andre
2005-02-28 17:29 ` Adrien Plisson
2005-03-01 21:25 ` Simon Wright
2005-03-01 22:29 ` Adrien Plisson
2005-03-03 6:19 ` Simon Wright
2005-02-28 17:49 ` Jeffrey Carter
2005-02-28 16:51 ` mferracini
2005-02-28 16:59 ` Adrien Plisson
2005-03-01 3:07 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox