I want to get data from a txt file and set it to a textarea but I don't know how can I do that can you help me?
I get a output like this C:\fakepath\mytext.txt
<textarea placeholder="Enter Your Code" id="textarea" class="textarea"></textarea>
<button class="butc" onclick="open()">Add</button>
<script>
function open() {
document.getElementById ('textarea').value = document.getElementById ('file').value ;
}
</script>