Metafile metafile = new Metafile(new BufferedInputStream(new FileInputStream(filename)));
// filename1 is a new torrent file
metafile.print(new BufferedOutputStream(new FileOutputStream(filename1, true)));
//but filename1 can't be used
//first,edit Announce/Comment/FileName or something else in a torrent file,after that save a new torrent file,how to do that?
Metafile metafile = new Metafile(new BufferedInputStream(new FileInputStream(filename)));
// filename1 is a new torrent file
metafile.print(new BufferedOutputStream(new FileOutputStream(filename1, true)));
//but filename1 can't be used
//first,edit Announce/Comment/FileName or something else in a torrent file,after that save a new torrent file,how to do that?