Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Here's a strange one - parse a .txt file.....
"MyName"; 29; 8; 1973;
Could I somehow parse it and create the variables:
var name = "MyName";
var age = 29;
var birthMonth = 8;
var birthYear = 1973;
The script would retrieve the path to the text file from a cookie (I have that part working). In the above example, I used semicolons (;) as delimiters. In reality, I could use virtually anything as a delimiter (including carriage return line feed). Any help would be greatly appreciated, I know a little bit about scripting but this is way over my head.