----- file created by makedoc on: Fri May 31 15:22:25 2013
----- Documentation for /scisoft/xop2.3/extensions/shadowvui/src/lib/write_gfile.pro -----

 NAME:
	WRITE_GFILE

 PURPOSE:
	This writes the contents of an IDL structure in a gfile.

 CATEGORY:
	SHADOW

 CALLING SEQUENCE:
 
	write_gfile,str [,file]

 INPUTS:
	str:	The IDL structure.

 OPTIONAL INPUTS:
	file:	the file name for the output. If not set, it uses 'start.00'

 KEYWORD PARAMETERS:

 OUTPUTS:
	A gfile.

 PROCEDURE:
	Straightforward.

 EXAMPLE:

		WRITE_GFILE,str,'start.02'

 MODIFICATION HISTORY:
 	Written by:	Manuel Sanchez del Rio, srio@esrf.fr, 97/11/05
	98-06-24 srio@esrf.fr adds format when writing float/double.
	06-02-21 srio@esrf.fr changes format to deal with meV

