How do I access and read a local file from html+javascript page running locally

后端 未结 4 1430
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 12:26

I would like to write a small html file that would run locally and manipulate a small text file on my computer. My requirements are:

  • Text file sits in a direc
4条回答
  •  Happy的楠姐
    2020-12-09 12:47

    You can also use an hta file extension and it will load in IE where you have access to ActiveX objects. In a pinch you can very quickly get an executable program up and running with minimal effort.

    The relevant code is:

    
    
        
            
             
        etc.....
    

提交回复
热议问题