I'm experiencing difficulties with file handling and interfacing between Python and JavaScript in my code hosted on Kaggle. The code, accessible https://www.kaggle.com/datasets/swastikpandey0813/my-code this link, contains paths for file operations.
My goal is to establish a workflow where:
- js takes user input and writes it to a file.
- Python processes the input, writes the response to another file.
- JavaScript reads the response file and performs operations.
- All files are deleted and recreated for the next iteration.
- Despite multiple attempts, the JavaScript component fails to read the output file generated by 6)Python and execute subsequent tasks. I've tried adjusting file paths and permissions without success.
Could someone provide guidance on properly implementing this workflow, ensuring seamless interaction between Python and JavaScript for file handling?
I appreciate any insights, code snippets, or suggestions.