Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

How to Register on LPF | LPF Donations

Laser Pointer Forums - Discuss Laser Pointers | High Power Lasers

ok,
i've been trying to write something in C

but i just cant do it

i need to write a program in C which reads the names of every file (folder or/and files) inside a folder and just save the names (not directory, dont need the extension, just the NAME) into a .txt



i.e.

if i have a folder named NIKO

and inside that folder i have:


folder HELLO
folder HI
mp3 file HELLO - YOUR SONG


the txt should have

HELLO
HI
HELLO - YOUR SONG

inside it




could you please help me to do this? i know it's simple but i forgot how to use strings and reading files in c :(


Back
Top