📄 createtempfile.java
字号:
import java.io.*;public class CreateTempFile{ public static void main(String args[]) { try { File tempFile = File.createTempFile( "myfile", ".tmp" ); FileOutputStream fout = new FileOutputStream(tempFile); PrintStream out = new PrintStream(fout); out.println("Place this test string in the temp file"); } catch ( IOException ex ) { System.out.println("There was a problem creating/writing to the temp file"); ex.printStackTrace(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -