XXXX This program was written for a friend who was printing up raffle tickets on his ST with PageStream. It will search through a file and replace a sequence of XXXXs with an incremental counter. usage: xxxx filename.ext -start -count -numberofx -duplicates e.g. from mupfel or gulam: xxxx filename.doc -1000 -250 -4 -2 will replace 250 sequences of 4 'X's with a counter starting at 1000 and going through 1249. Actually 500 replacements will be done since duplicates is set to 2. My friend had a stub and a name/address form so each had to be numbered the same. ('xxxx filename.ext' will default to the those values - 1000,250,4,2). 'xxxx' will return instructions. Nitty gritty: if there are not enough sequences of 'X's, new files will be created. e.g. my friend had 5 pages of 3 tickets in a file called raffle.doc - the output of XXXX was into sixteen files called raf000.doc - raf015.doc, since 16*5*3 >= 250. -- Greg