source code
//主程式,副程式,class。我想很久,用上basic寫到介面 很簡單Find執行函式不同作業環境。要動態連結,函式庫的函式庫函式。用 edit執行,編輯建檔new.txt存檔次處存檔重要。偏差差別在這段碼。並且執行在路徑C:\目錄路徑 沒有if 選擇 我沒寫,這shell=環境變數C:\;\我想沒有寫。建立C語言form.win.bour檔,看到底是C還是java程式。建立New,open,save整個程式碼,用大寫字母開始。−s用了command命令宣告 在window環境java語言寫程式指令照規定不然有錯寫wrote.exe會中病毒,檔案感染,按鍵,電阻有極性沒干擾。
<html
>
Main
@echo
%errorlevel%
Find.exeutrirc
Write
Devive=
if errorlevel
choice.exe /Y r edit
Check shelself=
/import java.io.*;
import java.nio.charset.*;
import java.util.*;
public class Main
{ public static void main(String[] args)
{ Char -s for any thing (+)
set utf8 = StandardCharsets.UTF_8;
List<String> list = Arrays.asList(“This is the first line”, “This is the second line”);
String content = “This is my content”;
try
{ // File name with path
String fileName = “my-file.txt”; File myFile = new File(fileName);
FileOutputStream fos = new FileOutputStream(myFile); OutputStreamWriter osw = new OutputStreamWriter(fos);
Writer Come soon
//The command executed by wll is the command. The write action is not the same as the common A: 註://這裡宣告
for any fourthe Johnson nescape city of NY。
//siu (sound) swe @alth sies&_action. The execution method is like write!it is working。
wll執行的命令後者是指令 去故動作write不一樣不變是指令動作到 執行的方式執行像wrote不行啦!
wll in write= new Write(osw);
// Write data using a String variable wll.write(content + “\n”);
// Write data from an ArrayList
//DOS dos for this does come do White?comanad company in Melbourne form won.bour by window
for (String s : list) { for any fourthe
for aJohnson.m.nbvc.write(s + “\n”); }
}
catch (IOException e) {System.out.print (\d,”An error occurred.”); e.printStackTrace()this piupop};
}
}
</html>