Geeks With Blogs
FOXJAZZ developing with .net June 2020 Entries
nodejs readline info
Readline is another Node.js native module that was developed specifically for this purpose — reading one line at a time from any readable stream. You can even use this module to read input data from the command line.Here is how you can access it in your code (no installation required):const readline = require('readline'); Since readline module works with readable streams, we have to first create a stream by using the fs module like below:const rl = readline.createInterface({ input: fs.createReadStream('file.t... ......

Posted On Tuesday, June 16, 2020 1:26 PM

reading json file
var options= File.ReadAllText("options.json");
            var optionsObj= JObject.Parse(options);
            value= Convert.ToString(optionsObj["key"]);

Posted On Wednesday, June 3, 2020 1:27 AM

Copyright © foxjazz | Powered by: GeeksWithBlogs.net