I have a file which is at a network which looks like this -
\\\mangoes.txt
I want to read this file directly without using any input tag on the html page.
how can I achieve this?
I have a file which is at a network which looks like this -
\\\mangoes.txt
I want to read this file directly without using any input tag on the html page.
how can I achieve this?
This is not possible. Browsers wont allow you reading any file other than JS or CSS. This would be a breach of security. Using form however you can ask user to updload a file and then can read the content of that file. But this is not possible without using input tags. For a workaround following options are possible :