Generation

generate functionWed, 15 Mar 2023

将图片地址写以二进制写到文档里

public void WriteToText(string imgPath) { var binaryWriter = new BinaryWriter(new FileStream("C:\\Users\\Emmett\\Desktop\\1.txt", FileMode.OpenOrCreate)); binaryWriter.Write(imgPath); binaryWriter.Close(); }

Questions about programming?Chat with your personal AI assistant