I have researched for many hours to find the way to auto read local file with html and js , but the only way is create input tag in html but user need to select file in their computer and read it - this way doesn't auto read (I use http-server command to run html file).
I know direct access "file://" is blocked by browsers for security reasons or some solution like "--allow-file-access-from-files"
But when i use reactjs and read file from public folder, it's work (app create by npx create-react-app )
Could you tell me the difference between them and give a solution to auto read local txt file with only html,js.
Sorry for my bad English.
Thank you very much