var file:File = new File(“C://abc.txt”)

var fs:FileStream = new FileStream()

fs.open(file,FileMode.WRITE)

fs.position = 0

fs.writeUTFBytes(“http://https://https://cfzy.site”)

fs.close()

这样就会在C盘生成一个内容为”http://https://https://cfzy.site”的abc.txt文件..