Users Pricing

forum

Home Forums How can I read all files in a directory to an array using C#? – MindStick

How can I read all files in a directory to an array using C#?

Lady Bird Johnson 2672 05 Oct 2013

I have a folder D:\MyDirectory that is full of tab-delimited text files, but the number of files is unknown at any given time. How Can  I read and store the names of the text files in the MyDirectory directory into an array?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md