I have a program where you can write notes and save them in .txt files. Every note has a title and a text. The title of the note is the file name without ".txt" suffix. So in my program there's a Listbox that contains all the notes'title and clicking on the title you can read the note. My problem is that I can't write a title with these characters: \ / : * ? " < > | because they're not allowed in a file name.
How could I solve this problem? I thought that a solution could be to create a new .txt file that contains only file names then associate a file name to a note based on the line number.
Is there an easier solution? If yes, could you please tell me? Thank you!