public static IFile createFile(IPath path,String contents) throws CoreException, UnsupportedEncodingException {
  ByteArrayInputStream byteArrayInputStream=new ByteArrayInputStream(contents.getBytes("UTF-8"));
  return createFile(path,byteArrayInputStream);
}

public static IFile createFile ( IPath path , String contents ) throws CoreException , UnsupportedEncodingException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream ( contents . getBytes ( "UTF-8" ) ) ; return createFile ( path , byteArrayInputStream ) ; }
create a file at the given path with the given contents . if the file already exists , then a coreexception will be thrown .
