@@ -0,0 +1,1903 @@
+/*%0A * Copyright 2013 Peter Lawrey%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage net.openhft.chronicle.examples;%0A%0Aimport net.openhft.chronicle.ExcerptAppender;%0Aimport net.openhft.chronicle.IndexedChronicle;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0A%0Apublic class WritingTextMain %7B%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        String basePath = %22/tmp/my.log%22;%0A        // clear the file first.%0A        for (String name : new String%5B%5D%7BbasePath + %22.data%22, basePath + %22.index%22%7D) %7B%0A            File file = new File(name);%0A            file.delete();%0A        %7D%0A        IndexedChronicle chronicle = new IndexedChronicle(basePath);%0A%0A// write one object%0A        ExcerptAppender appender = chronicle.createAppender();%0A        appender.startExcerpt();%0A        appender.append(%22TestMessage%5Cn%22);%0A        appender.finish();%0A%0A        appender.startExcerpt();%0A        appender.append(%22Hello World%5Cn%22);%0A        appender.finish();%0A%0A        appender.startExcerpt();%0A        appender.append(%22Bye for now%5Cn%22);%0A        appender.finish();%0A%0A        chronicle.close();%0A%0A        BufferedReader br = new BufferedReader(new FileReader(basePath + %22.data%22));%0A        for (int i = 0; i %3C 3; i++) %7B%0A            String line = br.readLine();%0A            System.out.println(line);%0A        %7D%0A        br.close();%0A    %7D%0A%7D%0A

Add an example of writing a file in text and reading with BufferedReader