>Hi..All
>I want import text file (data.txt) into table in my application ..(not use import wizard..How I can do? I want have import menu from my application and input file name (data.txt)
>
There are literally dozens of ways to do this, the best will vary according to the VFP version you're using and how the text file is laid out. You could build an import table format as a template, and import it using APPEND FROM with appropriate type based on the way the text file is constructed (ie comma-delimited files use the DELIMITED clause, if all lines and fields are fixed length, TYPE SDF is appropriate, etc.) You can such the file into a memo frield and then use the built-in functions for walking through a memo field (MLINE() MEMLINES(), and all the string functions), pull it into a string using the VFP6 FILETOSTR(), or use the low-level file I/O functions to read the file. Without knowing a good deal more, it's iompossible to say which method is best - I've used all of them in different situations, and the form of the input data really determines how best to process the file.
>Narong