robthewildman Posted March 26 Share Posted March 26 I really need some help here. I'm trying to write a Computer Program in ASP/JavaScript that will read and list all the files in the current directory. Like for example in BASIC I would type the command, DIR. robchristiansen2@gmail.com Rob Christiansen Var fs = require('fs'); var files = fs.readdirSync('/assets/photos/'); require??? Never heard of it before. it appears they're trying to make an object. wouldn't that be an object of type directory, or something like that? I get error messages saying, "Object doesn't support this Property or method.” Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now