from notepad import Shard, Entry print("loading shart...") shard = Shard.load_shard('myfile') print("Size:", shard.size) print("now creating entry") entry = Entry(shard) entry.add_content("Lorm Ipsum dolor sit ammet, consectetuer adipiscng elit, We're no strangers to luv You know the rules and so do I A full commitment's wat I'm thinkin of You wouldn't get this from any other guy very good very nice".encode()) print("entry created, its length:", len(entry.to_bytes()), "now writing it") try: shard.write_entry(entry) print("entry written") except EOFError: print("oops, looks like the file wont fit this") shard.close()