文件位置我知道,我用BufferedReader 不行,拷过来的是乱码

解决方案 »

  1.   

    Look
    http://community.csdn.net/Expert/topic/3171/3171740.xml?temp=3.437442E-02
      

  2.   

    import java.io.*;
    class copyFile
    {
      public static void main(String args[]) throws IOException
      {
        int n;
        FileInputStream fin;
        FileOutputStream fout;
        try
        {
          try
          {
            fin = new FileInputStream(args[0]);
          }
         catch(FileNotFoundException e)
          {
            System.err.println(e);
            return;
          }
          try
          {
            fout = new FileOutputStream(args[1]);
          }
         catch(FileNotFoundException e)
          {
            System.err.println(e);
            return ;
          }
        }
        catch(ArrayInedxOutBoundsException e)
        {
          System.err.println(e);
          return ;
        }
        try
        {
          do
          {
            n = fin.read();
            if( n != -1)
              fout.write(n);
          }
          while(n != -1);
        }
        catch(IOException e)
        {
          System.err.println(e);
        }
        fin.close();
        fout.close();
      }
     }      
      

  3.   

    FileInputStream 
    FileOutputStream
      

  4.   

    是用http还是FTP?一般都是一些文件流的控制。
      

  5.   

    是用http还是FTP?一般都是一些文件流的控制。