f



How to format a text file just like the RFC-text files?

I want to make some document go like these, what tools can help?

Any help would be nice, thanks!


BLIOGRAPHY ...........................................   34


                             APPENDIX

     A.  EXAMPLES ...............................................   36
     B.  SIMPLE FIELD PARSING ...................................   40
     C.  DIFFERENCES FROM RFC #733 ..............................   41
     D.  ALPHABETICAL LISTING OF SYNTAX RULES ...................   44


     August 13, 1982               - i -                      RFC #822
^L



     Standard for ARPA Internet Text Messages



                                  PREFACE


          By 1977, the Arpanet employed several informal standards for
     the  text  messages (mail) sent among its host computers.  It was
     felt necessary to codify these practices and  provide  for  those
     features  that  seemed  imminent.   The result of that effort was
     Request for Comments (RFC) #733, "Standard for the Format of ARPA
     Network Text Message", by Crocker, Vittal, Pogran, and Henderson.
     The specification attempted to avoid major  changes  in  existing
     software, while permitting several new features.


          The framework severely constrains document tone and  appear-
     ance and is primarily useful for most intra-organization communi-
     cations and  well-structured   inter-organization  communication.
     It  also  can  be used for some types of inter-process communica-
     tion, such as simple file transfer and remote job entry.  A  more
     robust  framework might allow for multi-font, multi-color, multi-
     dimension encoding of information.  A  less  robust  one,  as  is
     present  in  most  single-machine  message  systems,  would  more
     severely constrain the ability to add fields and the decision  to

     ...

     tion, such as simple file transfer and remote job entry.  A  more
     robust  framework might allow for multi-font, multi-color, multi-
     dimension encoding of information.  A  less  robust  one,  as  is
     present  in  most  single-machine  message  systems,  would  more
     severely constrain the ability to add fields and the decision  to
     include specific fields.  In contrast with paper-based communica-
     tion, it is interesting to note that the RECEIVER  of  a  message
     can   exercise  an  extraordinary  amount  of  control  over  the
     message's appearance.  The amount of actual control available  to
     message  receivers  is  contingent upon the capabilities of their          
     individual message systems.





     August 13, 1982               - 2 -                      RFC #822
^L

-- 
0
lofe
4/19/2006 1:11:08 PM
comp.unix.programmer 10848 articles. 0 followers. kokososo56 (350) is leader. Post Follow

2 Replies
1136 Views

Similar Articles

[PageSpeed] 38

lofe@tom.com writes:
> I want to make some document go like these, what tools can help?

You can do it in any text editor.

Of course, it will be easier in emacs.

But nowadays, you may want to generate from one source HTML and PDF in
addition to this RFC-style text.  I guess you could use sgml tools,
like docbook.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

In a World without Walls and Fences, 
who needs Windows and Gates?
0
Pascal
4/19/2006 1:07:15 PM
According to  <lofe@tom.com>:
> I want to make some document go like these, what tools can help?

For the exact RFC format, you can use xml2rfc (http://xml.resource.org/).
The XML format is very simple (it is described in RFC 2629) and the
tool produces either text or HTML.


	--Thomas Pornin
0
pornin
4/20/2006 6:19:57 AM
Reply:

Similar Artilces:

Reading Text File, Text Scrolling and erase line from a text file
Hi , How can I Reading Text File, then Text Scrolling by means of keys "page UP" "page Down" and erase a specific line from a text file , when press "F2" key? Best Regards, Lidia from Poland -- ========================================= Pozdrawiam Lidiaa Lidiaa schrieb: > Hi , > > How can I Reading Text File, then Text Scrolling by means of > keys "page UP" "page Down" and erase a specific line from a text > file , when press "F2" key? > > ...

DOS text file to unix file
I am doing things the right way or does it needs modification? #include <stdio.h> #define MS_DOS_EOF 26 #define MS_DOS_CR 13 int main(int argc, char *argv[]) { int ch; FILE *in, *out; in = fopen(argv[1],"rb"); out = fopen(argv[2],"wb"); while (1) { ch = fgetc(in); switch(ch) { case EOF: case MS_DOS_EOF: fclose(in); fclose(out); exit(0); case MS_DOS_CR: break; ...

concatenating multiple text files into one text file
Hello all, I have a huge number of text files like : spectrum1_300_315.csv spectrum1_315_331.csv spectrum1_331_364.csv spectrum1_364_386.csv spectrum1_386_401.csv ...................................... ....................................... each file contains some headerlines at the beginning and data in 2 columns. I want to concatenate the data of the files into one text file .Can anyone hel me pls?thank u in advance. ...

Failed to write to a text file (text file is RW)
Hi, I dig up the following script. Added a simple HTML file with a form field named "vote" and have it send to the following php script. However, it failed to write to the poll_result.txt file. Why? Thanks as usual. <?php $vote = $_REQUEST['vote']; //get content of textfile $filename = "poll_result.txt"; $content = file($filename); //put content in array $array = explode("||", $content[0]); $yes = $array[0]; $no = $array[1]; if ($vote == 1) { $yes = $yes + 1; } if ($vote == 0) { $no = $no + 1; } // debug echo $yes; echo $no; // ou...

Converting A Unicode Text File to An ASCII Text File
We have a large number of text files built in Unicode that we need to be read by SAS. SAS does not read Unicode text. To convert the Unicode text to ASCII text we did the following: A Unicode text file adds an additional blank space to each character. To remove this blank character, you can use the code below. The hexidecimal value '00' is a blank character. So remove it using the SAS statement '00'x. The 'x' tells SAS you are reading hexidecimal. Use RECFM=N to tell SAS that you are reading a stream of data that will not conform to a typical file structure. SAS will ...

Convert UNIX formated text files to DOS formated?
I have about 150 unix formated text files that I would like to convert to dos formated. I am guessing that I loop though each file in the directory, read each line and conver the last character, then save to a file with the same name in another directory. I am not really sure what I convert the last charactor to. walterbyrd schrieb: > I have about 150 unix formated text files that I would like to convert > to dos formated. > > I am guessing that I loop though each file in the directory, read each > line and conver the last character, then save to a file with the same > na...

Re: Converting A Unicode Text File to An ASCII Text File
Mike, SAS does not read Unicode text. It is not true encoding=utf8 exist HTH Andre I tried upon this contents (a french one saved in utf8) but showed here in windows Nom,Adressé "Bob","cité Bergère" "Ann","impasse Dôme" with this code under sas windows options validvarname=any; filename a "z:\utf8.csv" encoding=utf8; PROC IMPORT OUT= WORK.PAPER3 DATAFILE=a DBMS=CSV REPLACE; GETNAMES=YES; DATAROW=2; RUN; the results are Nom Adress� Bob cit� Berg�re Ann impasse D�me But perhaps you have another problem...

Formatting unix text file
Hello Group, Does any one have a coding sample that takes a unix file and formats it so that when it is opened notepad that it is not 1 line. I have a routine that reads the file, using the HB_FReadLine function, but because the file being read does't have proper crlf, it doesn't not read it correctly to parse the information I need. Although the file is a unix text file, I am working with the file on a Windows system. At first I thought it was my routine that was not working until I opened the text file with Notepad and saw that it was just one continuious line. Any insight is gr...

Read a non text file
How can i convert a weird looking file to text file. I know the main info is stored in the file which looks like below. "����<t���Jч�ĉTV��y�rr��Ph"e~Wm>�E�0Y'p�=C�&�rؙ�<t�Fx�Zo$�+T��=���H Or�r6�S��m&7<�p�q��� u����w}�jlꥎ+_�����Z�?��v��ȉ�XC R�}�_�׍�:�$)�o}��NʨW\&���I@b�#T�B��8���J��CL�ypr\�]R���p\��S�XRҏ�f&?/��� 2�t�_��x���bG���Z�D�v�s [�"��N�# Ѡ�@)�����h'&%�(�)��c�ͼA ���zUZjLRyu�P̤� ��� �W��e�@1'�(��u-nG��p��2_�� T&�6+� _� d�(1Z�E@���h�F�z �~x�fG���s�b�/-+�@��0�%��6�wu�=��z���Y�0...

Text files read multiple files into single file, and then recreate the multiple files
Hiya, The title says it all really, but im a newbie to python sort of. I can read in files and write files no probs. But what I want to do is read in a couple of files and output them to one single file, but then be able to take this one single file and recreate the files I put into it. Im really at a loss as to how I go about recovering the files? obviously if i scan for a string that specifys the start and end of each file, theres the chance that the file might contain this term to which would split the files into unwanted chucks of file, which wouldnt be wanted. Any ideas? code snippets...

How do I tell the difference between the end of a text file, and an empty line in a text file?
Python's lack of an EOF character is giving me a hard time. I've tried: ----- s = f.readline() while s: .. .. s = f.readline() -------- and ------- s = f.readline() while s != '' .. .. s = f.readline() ------- In both cases, the loop ends as soon it encounters an empty line in the file, i.e. xxxxxxxxxx xxxxxxxxxxx xxxxxxx < - - - loop end here xxxxxxxxxxxxxx xxxxxxxxxx x < ---- loop should end here walterbyrd wrote: > Python's lack of an EOF character is giving me a hard time. > > I've tried...

Reading a text file into a Matlab Matrix
Hello there, I have a text file that contains the following; word11 word12 word13 word14 word21 word22 word23 word24 word31 word32 word33 word34 I want to read it into a 3x4 matrix (each word in a separate cell) I tried to use; data = textread('fileName.txt', '%s', 'delimiter', '\n') - puts each line in one cell data = textread('fileName.txt', '%s', 'delimiter', ' ') - puts each word in one cell but in a 12x1 matrix/array [col1 col2 col3 col4] = textread('tE.txt', '%s %s %s %s', 'delimit...

Command for converting text file (Windows CR) to text file (Linux) ?
Assume I trasferred/uploaded a text file (which was created on a Win system) to Linux system. How can I convert the eol chars to the Linux style ? I opened (and later saved) it in vi editor. But this didn't help. What else can I do to convert it? Karl In article <475ef469$0$17522$9b4e6d93@newsspool4.arcor-online.net>, Karl Medrell <k.medrell@hotmail.com> wrote: >Assume I trasferred/uploaded a text file (which was created on a Win >system) to Linux system. > >How can I convert the eol chars to the Linux style ? > >I opened (and later saved) it in vi editor...

Extracting lines from a text file that match a certain criteria to another text file
Hi, I am novice UNIX shell programmer and would like some help. I am trying to write a shell script that will read a text file line by line. The task is to extract lines from the text file that meet a set of criteria to another text file. An example of the text file, foo2, that I am using is shown below, 0,0,"NBSC",12,"24/02/2004 15:35:34","RD","2.2" 1,1,"ORG-UNIT-TYPE","C",1,"13/03/1997 17:24:49","PO" 1,2,"ORG-UNIT-TYPE","C",2,"13/03/1997 17:24:49","Client" 1,3,"ORG-UN...

Text file with numbers and text, want to just read numbers
I have a series of text files I want to read. The files begin with header information. The number of rows of header information changes, there is no commenting symbol such as %%, and the header information sometimes has numbers such as a date or a time. I want to read in the number and only the numbers. This is an example of a file: (Again, the header info changes, different # of lines, different text) Vector Signal [Measurement4]: 09/27/2006, 09:05:24 Units: EU Time Real 0 0.053732 9.6e-005 0.11968 0.000192 0.085483 0.000288 ...

Write Property Bag to Text file in Text format, not binary
Hi all I know that I can persist an object's data using the Property Bag in VB6 and MSDN includes the code sample listed below. However what I want to do is save to the text file in PLAIN TEXT Format, *not* as binary. I want to save the file so that it is human readable in the format: name of the property to save; the value to save (mInterestRate). However all the examples that I have found only show how to output the object as binary. Is it possible to write as plain text? Private pb As PropertyBag ' Declare a PropertyBag object. Private LoanObject As Loan ' Declare a ...

convert mat files (struct) to ascii text files / save data as ascii text
I'm using a script that saves data (x,y) as .mat files in struct format. However I need it to save the data as ascii text files. How can this be done? I've tried save -ascii etc etc but matlab returns that the data format is not suitable to save as ascii. So is there a (simple) way to either save my data as ascii text or convert a generated .mat file to ascii text file (CSV or else)? Thanks! On Dec 23, 10:43=A0am, "Stijn Oonk" <stijn.o...@tno.nl> wrote: > I'm using a script that saves data (x,y) as .mat files in struct format. = However I need it to sav...

Write to text file. Append to existing file. Create file if file doesn't exist.
Hi folks, &nbsp; up to LabVIEW 7 there was a wonderful "Write to Text&nbsp;File" vi which allowed the option "Append to File". Now, in LabVIEW 8, this old vi is not longer supported anymore. Instead, I am suggested to use a new "Write to Text File" vi. This vi does not offer the option "Append to File" anymore. Rather it is proposed in the online help that one should use the "Set File Position" in order to append text to the file. This much less straightforward than the old solution. Furthermore, I miss an option which would create the ...

creating unix-like text files in windows
Hi! I'm trying to create unix-like text files in Windows. The biggest issue is that I need to use only linefeed instead of carriage return+linefeed. It tried this with hex value \x0A, but it still did norman windows linebreak LF+CR(like I was using \n). Does anyone have any solution for this? Creating these files in unix is not a solution... ;-) <-_-> Huppu wrote: > I'm trying to create unix-like text files in Windows. The biggest issue is > that I need to use only linefeed instead of carriage return+linefeed. It > tried this with hex value \x0A, but it still did n...

pdf file to text file ??
Hi....... All I am working on VC++ 6.0. In my application, I need to convert PDF file to text (ASCII) file format. Can I achieve this task without using PDF SDK. Is there any commandline EXE available that can perform such task.. Thanks in Advance. Kireet Gajera kireetgajera@gmail.com wrote: > I am working on VC++ 6.0. > > In my application, I need to convert PDF file to text (ASCII) file > format. > > Can I achieve this task without using PDF SDK. Yes. > Is there any commandline EXE available that can perform such task.. pdftotext in the xpdf package. Have a...

Text in images to a text file
Hello, Does anyone know of any software for Linux which converts text in images to a text file. I have loads of paper documents that I intend to scan. The contents of these documents needs to eventually end up on a web site but as text. Darren <bobblebob@gmail.com> wrote in message news:1151612491.407262.124690@75g2000cwc.googlegroups.com > Does anyone know of any software for Linux which converts text in > images to a text file. I have loads of paper documents that I intend > to scan. The contents of these documents needs to eventually end up > on a web site but as text....

Writing Matrices to text file and printing additional text in specific format
Hi, I am trying to write data from 4 matrices to a text file. The data needs to be written in a specific format. I am having some trouble with one part of this. The details are below and my attempts at the solution are also included. % nmat is the number of matrices to be written to a text file nmat = 4; I have then created 4 matrices: MMM = rand(5,6); NNN = rand(3,6); PPP = rand(6,6); QQQ = rand(4,6); These now must be written to a text file, in the following format: A. I need to offset all 4 matrices from the left side of the destination file (myfile.txt) to where matrix d...

text file not mac text
please remind me of the difference. An 8-bit prog. I have needs ASCII text. if I save a file as TEXT or simpletext on a mac, it isnt accepted. I remember 'forked files' but no details...... Is there a II utilty to 'convert' a mac text file to acceptable II ascii text? thanks. cornelio <cornelio@san.rr.com> wrote: > please remind me of the difference. An 8-bit prog. I have needs ASCII > text. if I save a file as TEXT or simpletext on a mac, it isnt accepted. > I remember 'forked files' but no details...... > > Is there a II utilty to '...

read from Text file using VB and Insert into SQL table until eof text file reach
Dear All, my text file like following, a1, b1, c1, d1, e1 a2, b2, c2, d2, e2 a3, b3, c3, d3, e3 a4, b4, c4, d4, e4 ................. and im going to insert this values into SQL Tables with columns, [a, b, c, d, e] how im going to do so? i use below src code to do but i can not get the next line and next line of text file until it finished insert Private Sub mot_Click() 'Shell ("C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE c:\fisherdb. mdb /x ImportOpsNilai") 'frmPicCd.Show Dim db_connect ' Path = App.Path & "\ERP consumable code.xls" ...

Web resources about - How to format a text file just like the RFC-text files? - comp.unix.programmer

Resources last updated: 2/28/2016 2:56:29 PM