
    %
i                     P    d dl Z d dlZd dlZd dlZd Zedk    r e             dS dS )    Nc            	         t           j                            t          j                    d          } t           j                            |           rt          j        |            t          j        | t          j	        dd t          j        dd           }d}t          j        ||           |                                 t          j        | t          j        dd t          j        dd           }t          j        |d          \  }}|                                 ||k    rt#          d           nt%          d          t          j        |            d S )Nwin32file_demo_test_filer   s   Hello therei   z"Successfully wrote and read a filezGot different data back???)ospathjoinwin32apiGetTempPathexistsunlink	win32file
CreateFileGENERIC_WRITEwin32con
CREATE_NEW	WriteFileCloseGENERIC_READOPEN_EXISTINGReadFileprint	Exception)testNamehandle	test_datarcdatas        C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\win32/Demos/win32fileDemo.pySimpleFileDemor      s#   w||H0224NOOH	w~~h 
	(!))1dH4GD F  I	***
LLNNN!)(!T83I1d F !&$//HB
LLNNNy233334555Ih    __main__)r   r   r   r   r   __name__ r   r   <module>r#      sh    
			        0 zN r   