Re: Read from text file by Cindy
Cindy
Mon Feb 06 10:07:58 CST 2006
Hi Jesk,
The following worked just fine for me. How is it different from what you
have?
StrToFile("cindy_winegarden@msn.com" + Chr(13) + ;
"cindy_winegarden@hotmail.com" + Chr(13) + ;
"cindy_winegarden@aol.com" + Chr(13), ;
"C:\Temp\TestEmail.txt")
Create Cursor Test (Field1 C(100))
Append From "C:\Temp\TestEmail.txt" Type SDF
Browse
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn.com www.cindywinegarden.com
"jesk" <coocoonut@hotmail.com> wrote in message
news:1139213212.755499.156110@g43g2000cwa.googlegroups.com...
>I have a text file with e-mail addresses seperated by Return key
> (chr13). I need to import the e-mail addresses into a table. To do
> this, I created a table with one C(100) field and was able to execute:
> append from textfile.txt type SDF with VFP6.0. All data got imported
> ok. However, when I do the same command in VFP9.0, all e-mail address
> in the table displayed as a square box - unrecognized character. What
> did I do wrong?
>
> -jesk
>