Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a text file.
Message
De
16/05/2002 17:57:27
 
Information générale
Forum:
ASP.NET
Catégorie:
Visual FoxPro Toolkit pour .NET
Divers
Thread ID:
00657778
Message ID:
00657825
Vues:
21
Yes thank you. I just realized it and was about to answer my own post when I saw yours.


>Hi Fred,
>
>The reason why you are getting only a single character is because the lcString is declared as a Char datatype. Change it to
>
>Dim lcString As String
>
>and it will resolve the problem.
>
>hth,
>Kamal
>
>>I am reading a text file named Config.ini. In this text file is a single line with a word on it PUEM. When I read the file with either the FREAD() of FILTTOSTR() in VFPToolKitNET, I only get the first letter.
>>
>>DIM lcstring as Char
>>lcstring = " "
>>lcstring = FileToStr("..\Config.ini")
>>
>>MessageBox(lcstring)
>>
>>The messagebox only has the first letter of the first word in the first line.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform