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.