----- file created by makedoc on: Thu Sep 11 15:03:14 2014
----- Documentation for /scisoft/xop2.4/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:
       JSON: Set this keyword to one to write json (www.json.org) format.

 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
	2013-12-11 srio@esrf.eu added json kw (first attempt!)

