Learn to Code via Tutorials on Repl.it!

← Back to all posts
Js Read Files NO NODE.JS
GatewayDuckYT (48)

With My Custom Script You Can Do Alot With Just Js
Today I will show you how to read any file with js and store it in a varble

ALSO Comment what else i should add bc nothing is imposable

First SetUp

`Html File You Are Using it In`
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> //Make Sure You Have JQuery
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script> //this is for something else but for this to work you will need this
 <textarea cols="1" rows="1" style="visibility: hidden" id='fileGet' class='hidden' name='fileGet'></textarea> //a textarea this will been auto hidden but is need to get the info this will not effect your code
<script src='https://SuperScript.gatewayduckyt.repl.co/script.js'></script> // and the script of course 

Using

var name = readfile('/filepath.json') the .json can be anything but make sure u add the / before the file path

If You need any help let me know by commenting

Comments
hotnewtop
programmeruser (571)

Why is the code obfuscated?

GatewayDuckYT (48)

@programmeruser This Post Is Coming Soon But For You
To Use the syntax: encrypt(messageToEncrypt, keyToEncryptWith, CookieNameToStore)
To Decrypt: syntax: decrypt(keyToDecept, CookieNameToGet)
Ex: Encrypt('hello bob', 'thisissupercool', 'Message')

//> added cookie With The Name 'Message'

var x = Decrypt('thisissupercool', 'message')
console.log(x)

Console: hello bob

Reminder This Is NOT the official build more is coming soon