Welcome to the Treehouse Community
Looking to learn something new?
How can i send a table row data to a txt file with node js?
Hi. I’m building some kind of tool manager as a practice project. how it’s working? I have 2 tables : 1 table for tools that is being taken currently and another table which is the logs table. I want to send every time the user click on the “delete log button” the data in the table to a txt file. I’m currently not at home and i upload my workspace here but i have done some research about this topic and there is the “fs” library in node js but i don’t fully get how i can send the data from the logs
i will appreciate any info about this topic, thanks
Ken AlgerTreehouse Teacher
1) Grab the data that will be "deleted" from the
2) Save the "deleted" data to the
3) Delete it from the
Hard to write the code for your specific use case without knowing the table structure, current code base, etc.