---
title: "Write a script to parse a large data file · Lenexa Learn"
description: "A developer had ChatGPT write a script to parse a big file and lay out the results a certain way, then read through the script and checked the output on a…"
url: https://www.lenexa.ai/learn/use-cases/write-a-script-to-parse-a-large-data-file/
site: "Lenexa Learn"
---

Software & DevOps

# Write a script to parse a large data file

A developer had ChatGPT write a script to parse a big file and lay out the results a certain way, then read through the script and checked the output on a sample.

## Steps

1. Share a sample of the file.
2. Generate the script.
3. Check the results on a small piece first.

## Prompt you can copy

```
Write a script that reads [file format] and outputs [summary/format]. Here's a sample: [paste]
```

## Tools

- ChatGPT

For Developers. Added October 12, 2026.

## Source

[hn](https://news.ycombinator.com/item?id=41668521) · September 2024

## Related use cases

Software & DevOps

### [Build an app prototype from your database schema](https://www.lenexa.ai/learn/use-cases/build-an-app-prototype-from-your-database-schema/)

One builder had ChatGPT turn their database schema into types and sample data, then built the app's screens one at a time in Bolt.

Developers, Small businesses ChatGPT, Bolt

Software & DevOps

### [Generate infrastructure code from a design diagram](https://www.lenexa.ai/learn/use-cases/generate-infrastructure-code-from-a-design-diagram/)

An engineer gives ChatGPT a labeled design diagram with detailed security notes and gets back working CDK and Terraform code.

**Caution.** Never apply infrastructure code you haven't reviewed.

Developers ChatGPT

Software & DevOps

### [Generate test cases for your project](https://www.lenexa.ai/learn/use-cases/generate-test-cases-for-your-project/)

Building their own Lisp, one developer gave ChatGPT a few sample tests and had it write more for the test suite.

Developers ChatGPT

The daily email

## Get 5 AI use cases every morning

A short morning email with five things AI can help with, picked for the groups you choose. It's free, we don't sell anything on this list, and every email has an unsubscribe link.
