Subject Re: make a txt file?
From Ivar B. Jessen <nospam@nospam.com>
Date Mon, 25 May 2015 06:18:36 +0200
Newsgroups dbase.getting-started

On Sun, 24 May 2015 18:49:57 -0400 Alina Rusu
Sender:  Alina Rusu <nightcasters@gmail.com>
wrote the following in:
Newsgroup: dbase.getting-started
Subject: make a txt file?:
MessageID:<xiKf1PnlQHA.188@ip-AC1E04A7>
  
>I need to make a txt file with the contents of a memory varable..
>any ideas?
>
>I have'sdfsdfsdfsdfsdfsdfsdf blah bla' stored to a
>i need a in filename.txt


Try the code below my signature, it illustrates one way to do that.


Ivar B. Jessen

//-----
// Create and fill a variable a
if file("Fish.dbf")
   drop table Fish
endif  
copy table :dbasesamples:Fish to Fish
use Fish
skip 3
store description to a
use
drop table Fish

// Create a new file MyFish.txt, and fill with contents of variable a
set console off
set alternate to MyFish.txt
set alternate on
? a
set alternate off
set alternate to
set console on

// Check result
modi comm MyFish.txt
//-----