public synchronized FileChunk write(String filename) {
		sb = new StringBuilder();
		for (int i = 0; i < chunkSize; i++) {
			try {
				String line;
				if ((line = f.readLine()) == null) {
					break;
				}
				sb.append(line);
				sb.append('\n');
			} catch (IOException e) {
				e.printStackTrace();
				break;
			}
		}
		FileChunk chunk = new FileChunk(filename, sb.toString());
		return chunk;
	}