d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Can Someone Write A Javascript Program For Me? > (1000fg)
Add Reply New Topic New Poll
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Mar 30 2018 01:38pm
The program takes an input .txt file and outputs a .txt file.
It is to be hosted on a website.

~~ input.txt file ~~

//User Defines Tags. In this example, 3 tags have been defined.

Tag 1 = /f "Food"
Tag 2 = /a "Animals"
Tag 3 = /b "Basketball"

//Next are the sentences in the file. Each is followed with a tag.

Hi there my name is Michael Jordan. /b
blah blah blah dogs. /a
Stephen curry. /b
cherries and coke. /f
...and so on.

~~ output.txt file ~~

//Written in alphabetical order.

Animals:
blah blah blah dogs.

Basketball:
Hi there my name is Michael Jordan.
Stephen curry.

Food:
cherries and coke.

This post was edited by kdog3682 on Mar 30 2018 01:38pm
Member
Posts: 1,456
Joined: Aug 20 2012
Gold: Locked
Mar 30 2018 04:31pm
Pmd
Member
Posts: 4,065
Joined: Aug 18 2009
Gold: 1.46
Apr 2 2018 12:43am
Pming
Member
Posts: 4,065
Joined: Aug 18 2009
Gold: 1.46
Apr 3 2018 01:50am
Working code pm'ed over
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll