Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a text file.
Message
General information
Forum:
ASP.NET
Category:
Visual FoxPro Toolkit for .NET
Miscellaneous
Thread ID:
00657778
Message ID:
00657792
Views:
23
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform