0

Is it possible to write text in .txt file using javascript or angularjs or phonegap without using any backend

Sangram Badi
  • 4,054
  • 9
  • 45
  • 78
  • 1
    There should be *something* that writes to a file server-side. Whatever is capable of doing that would be called a backend, "by definition". – zerkms Nov 30 '17 at 08:06
  • If by any chance you use Windows you can use JavaScript for scripting - https://stackoverflow.com/questions/6106312/using-fso-in-javascript-how-to-write-a-variabless-content-to-a-file (could be even duplicate, but I strongly suspect you are asking about something very different) – Alexei Levenkov Nov 30 '17 at 08:25

1 Answers1

2

Is it possible to write text in .txt file using javascript or angularjs without using any backend

Short answer - No

detailed answer:

You must store somewhere your file and it can be done by server side only.

The client side (AngularJs in your case) loads vendors/bundle sources on web browsers and it doesn't have any access to your file system.


I believe Chrome extensions: fileSystem is not your case


is it possible in phonegap?

Well, its a hybrid mobile infrastructure and you have plugins to access mobile filesystem

Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225