ASCII .DAT, .TXT, .CSV Data Files

ASCII files are generic format files that can be read or produced by most applications. There are three common ASCII data formats: .DAT, .CSV, and .TXT. These files can also be imported into most applications, including word processors, spreadsheets, and ASCII editors.

Worksheet Formatting

ASCII files do not contain any worksheet formatting information such as row height, column width, or cell formatting. When ASCII files are loaded into the worksheet, the default column formatting parameters are applied to the data. This does not result in any change to data, but might result in rounding of values in the data display. There is no limitation on the number of rows or columns in an ASCII format. ASCII formats save and load slowly because there is a conversion from binary numbers to character representation.

Format

There are some distinctions in formatting of ASCII files. Here are some brief notes that outline the usefulness of the ASCII file features.

  • Delimiters control the separation between cell entries in a file. Spaces, tabs, semi-colons, or commas can be used to separate cells. If cell entries contain spaces in text, the comma or semi-colon delimiters are necessary if quotes are not used to qualify the text; otherwise, the text string would be interpreted as two cell entries rather than a single entry.

  • Placing Quotes around Text. There are two types of entries in an ASCII file: values and text. Values are actual numbers; text can be any type of character, including numbers and text characters. Single or double quotes can be placed around text strings. If a number should be interpreted as text, surround it with double quotes. When text strings contain spaces, it is recommended to use single or double quotes around text cell entries.

  • Using Commas or Semicolons in Addition to Quotes. Although double quotes are not required around text strings, they are useful when creating a space-delimited file that contains text. Often there are text strings that contain spaces, as in a date containing month name, day and year. With space delimited files this single entry is interpreted as more than one cell when loading this file into the worksheet. The safest way to eliminate this problem is to place double quotes around all text strings and use comma delimiting between variables.

Golden Software DAT Files

When a file is saved in the .DAT format, the Data Export Options dialog is displayed. If a file is in an ASCII text format with an unrecognized file extension, the Data Import Options dialog appears when opening the file.

ASCII Text

ASCII text files .TXT are tab delimited ASCII text files with no quotes around the text strings.

Comma Separated Variables

Comma separated variable files .CSV are comma delimited with double quotes around text strings (non-numeric or mixed alphanumeric).

When the computer's local setting has the Decimal separator as comma, .CSV are imported with commas as decimal separators and semi-colons as column separators. When the File | Options Decimal separator is manually set to comma, .CSV files also import with commas as decimal separators and semi-colons as column separators.

Import Options Dialog

 Data Import Options Dialog

Import Automation Options

 Data Import Automation Options

Export Options Dialog

 Data Export Options Dialog

Export Automation Options

 Data Export Automation Options

See Also

Data File Formats

Data Import Options

Data Export Options

Opening Worksheet Files

Saving Worksheet Files

SYLK SLK Files

Excel Files

File Format Chart