Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 MyNamespace.properties.resources.MyTxtFile 时,我可以从资源文件中的嵌入文本文件中读取,但它直接返回字符串并且它是只读字符串,因此我无法更改它。我想写在文件中
这是不可能的。资源是嵌入的并且是只读的,如果你修改了它们,例如,你会破坏签名。