assign the value of the seed properies file

Viewed 32

I am trying to read the seed file and create an array of values for it

here is my code

var seedFile = FileOpen('C:\ColdFusion2021\cfusion\lib\seed.properties','read');
var seedArr = [];
writedump(seedFile);
while(NOT FileisEOF(seedFile)) {
    x = FileReadLine(seedFile);
    var seedArr[1] = ListLast(x,'='); // wants the array to hold the seed value and the algorith in two seperate arrays 
}
FileClose(seedFile); abort;

how can i do that.

0 Answers
Related