Skip to content

Instantly share code, notes, and snippets.

View veryyoung's full-sized avatar

veryyoung veryyoung

View GitHub Profile
@veryyoung
veryyoung / FileGathering.java
Last active October 10, 2015 08:40
合并文件,可用来制作传说中的图种。运行时把文件路径当做参数传入,最后一个参数为输出文件的路径。
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
public class FileGathering {
public static void main(String[] args) throws IOException {
combineFiles(args);