CSV: Difference between revisions

From MoodleDocs
(Example of CVS for real new users)
(firstname, lastname, address, city, state SHOULD BE LOWERCASE)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A '''CSV''' (Comma Separated Values) file contains tabular data (such as found in spreadsheets or databases) in a simple text format. Each value is separated from the next by a comma. Each line is a record and the commas seperate the fields or columns.  For example:
{{Managing a Moodle site}}
A '''CSV''' (Comma Separated Values) file contains tabular data (such as found in spreadsheets or databases) in a simple text format. Each value is separated from the next by a comma. Each line is a record and the commas separate the fields or columns.  For example:


  First name, Last name, Address, City, State
  firstname, lastname, address, city, state
  Sally, Smith, 234 A Street, Town, Peace
  Sally, Smith, 234 A Street, Town, Peace
  George, Smithe, 999 Last Lane, Hamlet, Denial
  George, Smithe, 999 Last Lane, Hamlet, Denial
Line 8: Line 9:
These files can be created, viewed and edited with software such as Microsoft Excel, Open Office  Calc or, if done with care, any simple text editor.
These files can be created, viewed and edited with software such as Microsoft Excel, Open Office  Calc or, if done with care, any simple text editor.


== See Also ==
== See also ==


* [[Upload users]]
* [[Flat file]] enrolment
* [http://en.wikipedia.org/wiki/Comma-separated_values Wikipedia article on the CSV file format]
* [http://en.wikipedia.org/wiki/Comma-separated_values Wikipedia article on the CSV file format]
* [http://office.microsoft.com/training/training.aspx?AssetID=RC011801181033&CTT=6&Origin=RP011801171033 Microsoft help tutorial on importing CSV file data into Excel]
* [http://office.microsoft.com/training/training.aspx?AssetID=RC011801181033&CTT=6&Origin=RP011801171033 Microsoft help tutorial on importing CSV file data into Excel]
{{stub}}
* [[UTF-8 and BOM]]
* [[qformat/csv]] - a simple way of creating multiple choice questions using a CSV file
* [[qformat simplecsv]] - a very simple way of creating multiple choice questions using a CSV file


[[Category:Administrator]]
[[es:CSV]]
[[Category:Teacher]]

Latest revision as of 17:55, 25 July 2023

A CSV (Comma Separated Values) file contains tabular data (such as found in spreadsheets or databases) in a simple text format. Each value is separated from the next by a comma. Each line is a record and the commas separate the fields or columns. For example:

firstname, lastname, address, city, state
Sally, Smith, 234 A Street, Town, Peace
George, Smithe, 999 Last Lane, Hamlet, Denial
Dim, Witt, By-the-Either, Wave, Outback

These files can be created, viewed and edited with software such as Microsoft Excel, Open Office Calc or, if done with care, any simple text editor.

See also