title: Create file on remote machine in java
body: <p>I am using follwoing code but its not showing expected output.</p>
  
  <pre><code>public class FileTestOnSever {
  public static void main(String[] args) {
      File file = new File("http://10.44.25.30:success.txt");
      if (!file.exists()) {
          try {
              file.getParentFile().mkdirs();
              // file.createNewFile();
          } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  
  }
  </code></pre>
  
  <p>}</p>