| 
	
		| Subject | Re: make a txt file? |  
		| From | Ken Mayer <dbase@nospam.goldenstag.net> |  
		| Date | Mon, 25 May 2015 06:28:43 -0700 |  
		| Newsgroups | dbase.getting-started |  | On 5/24/2015 8:36 PM, Mervyn Bick wrote:
 > On Mon, 25 May 2015 07:03:24 +0200, Ken Mayer
 > <dbase@nospam.goldenstag.net> wrote:
 >
 >> f = new file()
 >> f.filename := "filename.txt"
 >> f.puts( name_of_variable )
 >> f.close()
 >>
 >> Ivar shows another way ... I like using the file object, but a lot
 >> depends on your needs. :)
 >
 > Umm.
 >
 > cFilename = "filename.txt"
 > f = new file()
 > f.create(cFilename)
 > f.puts( name_of_variable )
 > f.close()
 >
 > To retrieve the variable.
 >
 > cFilename = "filename.txt"
 > f = new file()
 > f.open(cFilename)
 > name_of_variable = f.gets( name_of_variable )
 > f.close()
 
 Oops. Didn't actually test the code ...
 
 Ken
 
 
 --
 *Ken Mayer*
 Ken's dBASE Page: http://www.goldenstag.net/dbase
 The dUFLP: http://www.goldenstag.net/dbase/index.htm#dUFLP
 dBASE Books: http://www.goldenstag.net/dbase/dBASEBooks.htm
 
 
 |  |