Return-Path: william@bourbon.usc.edu Delivery-Date: Mon Nov 17 08:59:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id mAHGxdeL004074 for ; Mon, 17 Nov 2008 08:59:39 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAHGuAqI024237 for ; Mon, 17 Nov 2008 08:56:10 -0800 Message-Id: <200811171656.mAHGuAqI024237@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Store Format Date: Mon, 17 Nov 2008 08:56:10 -0800 From: Bill Cheng Someone wrote: > Do the characters account for 2 bytes in the packet ? Yes, for each line. > Basically, do we have to put 2 newline characters in the file, one for > and one for ? How are these characters stored exactly ? They are not 2 newline characters. is "carriage return" and is "line feed" which is the newline character. Normally for UNIX, if you want to write out a line to the terminal, you would do something like: printf("hello\n"); The last character is . To print the same line with , you can do: printf("hello\r\n"); "\r" is . -- Bill Cheng // bill.cheng@usc.edu On Sun, Nov 16, 2008 at 10:31 PM, Bill Cheng wrote: > Someone wrote: > > > It has been mentioned that all the metadata parameters are followed by a > > . I understand that we have to include them while writing to a > > file, but do we also have to append the characters while > forming > > the store packet as well ? > > Yes. (When you format the STORE message, you should just > read the metadata file and copy the data into the message. > So, if the is already there, you don't need to do > anything extra. > -- > Bill Cheng // bill.cheng@usc.edu