B
    ãA^¾   ã               @   s   d dl Z dd„ Zdd„ ZdS )é    Nc          	   C   s&   t | dƒ�}t ||¡ W d Q R X d S )NÚw)ÚopenÚjsonÚdump)ÚfilenameÚdataZoutfile© r   ú3/newfoundland/zhl/Scan2cad/layoutMesh/JSONHelper.pyÚwrite   s    r
   c          	   C   s    t | dƒ�}t |¡S Q R X d S )NÚr)r   r   Úload)r   Zinfiler   r   r	   Úread   s    r   )r   r
   r   r   r   r   r	   Ú<module>   s   