在windows中的文件分隔符是 \ 和 /都可以 但是在Linux中,文件分隔符只能是/ 所以用了\\的程序在Linux下会出问题。 而File.separator是系统默认的文件分割符号,屏蔽了这些系统的区别。 用File.separator保证了在任何系统下不会出错。
訂閱:
張貼留言 (Atom)
-
@Override public void onResponse(Call call, Response response) throws IOException { // final String string = res...
-
//取得網頁上的字串 HttpURLConnection conn=null; try { URL httpUri = new URL(url); conn = (HttpURLConnec...
-
安裝ZX條碼器 public void Menu_QRCODE_Click(View v) { Intent intent = new Intent("com.google.zxing.client.android.SCAN"); ...
沒有留言:
張貼留言