https://github.com/eclipse-color-theme/eclipse-color-theme.github.com/zipball/master Ref: https://github.com/eclipse-color-theme/eclipse-color-theme.github.com/issues/1
https://github.com/eclipse-color-theme/eclipse-color-theme.github.com/zipball/master
File file = new File("1.txt");
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
String text = reader.readLine();
String s1="\u6df1\u6c34\u57d7";
String s2="深水埗";
OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream("2.txt"),"UTF-8");
out.write(text+s1+s2);
out.flush();
out.close();
} catch (Exception e) {
e.printStackTrace();
}
We can use WScript.Shell.Exec( ) and WScript.Shell.StdOut.ReadLine( ) to perform the task:
Set objShell = WScript.CreateObject("WScript.Shell")
Set objExecObject = objShell.Exec("cmd /c dir")
strText=""
Do While Not objExecObject.StdOut.AtEndOfStream
strText = strText & objExecObject.StdOut.ReadLine() & chr(13)
Loop
Wscript.Echo strText
COPM = Computer Operation Procedures Manual
This one is superb - https://designed-to-scale.vercel.app/