Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Dennis Castillo
Dennis Castillo
16,018 Points

File Handling Code for Javascript

Greetings Fellow in Web Development, I don't know yet how to deal with database and create a database for my server, so i just think out of the box, create a simple database in Pascal "I know it's a very old programming language but that is what I know :)" and I use the technique of FILE HANDLING. The software can create a file and you can declare a file extension with .txt for notepad or .doc for MSWord in short it is a readable text file, it can search for specific text file, rewrite (re-edit), delete a file, encode all data information to the text file and previews information.

My question is, is there also a File Handling Technique for Javascript, that can do also what i have mention that we can apply for Forms and data previews information?

Thanks and God Bless.....

1 Answer

James Barnett
James Barnett
39,199 Points

Pascal is a server-side language, JavaScript on the other hand runs on the client-side (unless we are talking about nodeJS) so in that case you'll want to use localstorage.