<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=CSV_Files</id>
		<title>CSV Files - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=CSV_Files"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=CSV_Files&amp;action=history"/>
		<updated>2026-05-13T00:22:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=CSV_Files&amp;diff=3180&amp;oldid=prev</id>
		<title>R.d.acker: wikipedia URL had an erroneous trailing &quot;pipe&quot; (&quot;|&quot;)</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=CSV_Files&amp;diff=3180&amp;oldid=prev"/>
				<updated>2010-12-22T13:26:03Z</updated>
		
		<summary type="html">&lt;p&gt;wikipedia URL had an erroneous trailing &amp;quot;pipe&amp;quot; (&amp;quot;|&amp;quot;)&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:26, 22 December 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Comet Text files may be treated as Comma Delimited Files (CSV or Comma Separated Values).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Comet Text files may be treated as Comma Delimited Files (CSV or Comma Separated Values).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;For a discussion of how Comma Delimited Files are formatted, [http://en.wikipedia.org/wiki/Comma-separated_values&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;&amp;lt;strong&amp;gt; Look Here.&amp;lt;/strong&amp;gt;]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;For a discussion of how Comma Delimited Files are formatted, [http://en.wikipedia.org/wiki/Comma-separated_values&amp;lt;strong&amp;gt; Look Here.&amp;lt;/strong&amp;gt;]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>R.d.acker</name></author>	</entry>

	<entry>
		<id>http://wiki.signature.net/index.php?title=CSV_Files&amp;diff=3179&amp;oldid=prev</id>
		<title>Jim: Initial Construction of page</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=CSV_Files&amp;diff=3179&amp;oldid=prev"/>
				<updated>2010-12-21T14:58:23Z</updated>
		
		<summary type="html">&lt;p&gt;Initial Construction of page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comma Delimited Files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/h1&amp;gt;&lt;br /&gt;
{| cellpadding=5 cellspacing=2&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;b&amp;gt;Syntax:&amp;lt;/b&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
File(LUN)CSV        ! Treat this text file as Comma delimited&lt;br /&gt;
&lt;br /&gt;
File(LUN)DLM=Str$ ! Use the first character of str$ instead of a comma to delimit fields in this file (&amp;quot;@09@&amp;quot; is a tab)&lt;br /&gt;
&lt;br /&gt;
File(LUN)NORMAL     ! Revert this file to use normal field handling&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| '''Discussion:'''&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Comet Text files may be treated as Comma Delimited Files (CSV or Comma Separated Values).&lt;br /&gt;
&lt;br /&gt;
For a discussion of how Comma Delimited Files are formatted, [http://en.wikipedia.org/wiki/Comma-separated_values|&amp;lt;strong&amp;gt; Look Here.&amp;lt;/strong&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CSV files are a convienient way to treat data for import or export to other windows applications. To tell Comet to start treating a file as CSV, &lt;br /&gt;
&lt;br /&gt;
just execute the fillowing file statement:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File(LUN)CSV&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|'''Example 1:'''&lt;br /&gt;
Writing a CSV record.&lt;br /&gt;
|&lt;br /&gt;
 Length 200  &amp;amp; Local A$ B$ C$  &lt;br /&gt;
 Length 15.0 &amp;amp; Local I &lt;br /&gt;
 Length 15.3  &amp;amp; Local J K &lt;br /&gt;
 Length 10.10  &amp;amp; Local L&lt;br /&gt;
 &lt;br /&gt;
 Fmt:  Format A$;B$;C$;I;J;K;L&lt;br /&gt;
 &lt;br /&gt;
 Clear&lt;br /&gt;
 Print(Et)&lt;br /&gt;
 Erase 'xxx.Csv', Dir='cos' Excp=Eok&lt;br /&gt;
 Eok: Create 'xxx.Csv', Dir='cos'&lt;br /&gt;
 &lt;br /&gt;
 Close(1) &amp;amp; Open(1) 'xxx.Csv', Dir='cos'&lt;br /&gt;
 File(1)Csv&lt;br /&gt;
 A$ = 'simple String'&lt;br /&gt;
 B$ = ' String With Embeded Double &amp;quot;Quotation&amp;quot;&amp;quot;Marks'        ! Leading Blank&lt;br /&gt;
 C$ = ' String Including A, Comma '                          ! Trailing Blank&lt;br /&gt;
 I = -10&lt;br /&gt;
 J = 10.34&lt;br /&gt;
 K = -99.345&lt;br /&gt;
 L = -.00012345&lt;br /&gt;
 Write(1,Fmt)&lt;br /&gt;
 Stop&lt;br /&gt;
 &lt;br /&gt;
In the above example, three string variables and four numeric&lt;br /&gt;
variables are written to a record in a text file. The result looks like this:&lt;br /&gt;
 simple string,&amp;quot; String with embeded double &amp;quot;&amp;quot;Quotation&amp;quot;&amp;quot;&amp;quot;&amp;quot;marks&amp;quot;,&amp;quot; String including a, comma&amp;quot;,-10,10.340,-99.345,-0.0001234500&lt;br /&gt;
&lt;br /&gt;
Notice that double quotes surround fields containing double quotation marks or commas. Double quotes within a field are escaped by placing another double quote before them. Leading minus signs are used for negative numbers.&lt;br /&gt;
&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|'''Example 2:'''&lt;br /&gt;
Reading a CSV record&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
 Length 200  &amp;amp; Local A$ B$ C$  &lt;br /&gt;
 Length 15.0 &amp;amp; Local I &lt;br /&gt;
 Length 15.3  &amp;amp; Local J K &lt;br /&gt;
 Length 10.10  &amp;amp; Local L&lt;br /&gt;
 &lt;br /&gt;
 Fmt:  Format A$;B$;C$;I;J;K;L&lt;br /&gt;
 &lt;br /&gt;
 Clear&lt;br /&gt;
 Print(Et)&lt;br /&gt;
 Close(1) &amp;amp; Open(1) 'xxx.Csv', Dir='cos'&lt;br /&gt;
 File(1)Csv&lt;br /&gt;
 Read(1,Fmt)&lt;br /&gt;
 Print 'a$=';A$&lt;br /&gt;
 Print 'b$=';B$&lt;br /&gt;
 Print 'c$=';C$&lt;br /&gt;
 Print 'i=';I&lt;br /&gt;
 Print 'j=';J&lt;br /&gt;
 Print 'k=';K&lt;br /&gt;
 Print 'l=';L&lt;br /&gt;
 Print 'done'   &lt;br /&gt;
 Wait&lt;br /&gt;
 Stop&lt;br /&gt;
&lt;br /&gt;
The Output of this program looks like this:&lt;br /&gt;
 a$=simple string&lt;br /&gt;
 b$= String with embeded double &amp;quot;Quotation&amp;quot;&amp;quot;marks&lt;br /&gt;
 c$= String including a, comma&lt;br /&gt;
 i=              10-&lt;br /&gt;
 j=          10.340&lt;br /&gt;
 k=          99.345-&lt;br /&gt;
 l=.0001234500-&lt;br /&gt;
 done&lt;br /&gt;
The contents of string variables are not padded with blanks. They contain exactly what was in the CSV field.&lt;br /&gt;
&lt;br /&gt;
'''A note about very large or very precise numbers:'''&lt;br /&gt;
&lt;br /&gt;
Some windows applications such as Excel, cannot tolorate very long numbers or numbers with precision as long as allowed by Comet. &lt;br /&gt;
&lt;br /&gt;
In this case, they will revert to floating point notation. &lt;br /&gt;
&lt;br /&gt;
As a result, these applications may cause loss of precision or Comet may not be able to read those numbers.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
CSV processing was introduced in Comet 2008. File()DLM= and File()NORMAL are available in Comet32 only.&lt;/div&gt;</summary>
		<author><name>Jim</name></author>	</entry>

	</feed>