String2TXT

xiaoxiao2021-03-06  54

Import java.io.fileoutputstream; import java.io. *;

public class String2File {public String2File () {String str = "abcdefghijklmnopqrstuvwxyz"; try {FileOutputStream fos = new FileOutputStream ( "a.txt"); byte [] b = str.getBytes (); fos.write (b);} Catch (Exception EX) {}}}

转载请注明原文地址:https://www.9cbs.com/read-82020.html

New Post(0)