<commit_before>---
title: File Adapter | Juttle Language Reference
---

# File Adapter

The `file` adapter allows reading points from, or writing points to, a file on the local filesystem.

[TOC]

## read file

Supported file formats are JSON array, and JSON lines; see examples below.<commit_msg>Update file.md<commit_after>---
title: File Adapter | Juttle Language Reference
---

# File Adapter

The `file` adapter allows reading points from, or writing points to, a file on the local filesystem.

[TOC]

## read file

Supported file formats are JSON array, JSON lines, CSV and unstructured logs (with grok parsing); see examples below.
{'fraction_non_alphanumeric': 0.08150470219435736, 'fraction_numerical': 0.0, 'mean_word_length': 4.195121951219512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7181562', 'n_tokens_mistral': 180, 'n_tokens_neox': 172, 'n_words': 88}