Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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.

https://teamtreehouse.com/forum/frontend-design-tips-solutions-html5-local-storage-and-css-dropdown-menus