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
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