NataliaMedeiros / minishell

0 stars 0 forks source link

Function to delete a file #14

Open NataliaMedeiros opened 1 month ago

NataliaMedeiros commented 1 month ago

Description: When the heredoc is created and pre-executed it creates a file with the same name as the delimiter where is placed everything that is typed inside the heredoc. Later on the program the file should be deleted, when it you wont be used anymore.

There are two place where this delete_file should be called: 1 - In the end off the execution, when the file won't be necessary anymore 2 - When I have multiple heredocs in sequence, the files created that won't be used on the execution should be deleted.