Commit ebfc6bbe authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent ad8f8559
......@@ -10,20 +10,37 @@ init()
async function init() {
let arr=[]
let files = await fs.readdirSync('E:\\fail\\btc1')
for(let i=0;i<files.length;i++)
{
if (!files[i].includes('.csv'))
continue
console.log(files[i])
arr.push(read('E:\\fail\\btc1\\'+files[i]))
}
let files2 = await fs.readdirSync('E:\\fail\\btc2')
for(let i=0;i<files2.length;i++)
{
if (!files2[i].includes('.csv'))
continue
arr.push(read('E:\\fail\\btc2\\'+files2[i]))
}
// console.log(files)
// let com = await fs.readFileSync('E:\\fail\\btc1', 'utf8');
// com = JSON.parse(com)
}
async function read(dir)
{
let com = await fs.readFileSync(dir, 'utf8');
console.log(com)
// com = JSON.parse(com)
}
function isUpper(str) {
return !/[a-z]/.test(str) && /[A-Z]/.test(str);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment