Problem solved by making adjustments in the createVcf function in caporalCli.js and in the database.txt to make the vcf files that are created have the structure that is expected by the parser when the import function is called.
Problem solved by making adjustments in the createVcf function in caporalCli.js and in the database.txt to make the vcf files that are created have the structure that is expected by the parser.
C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js createVcf database.txt 11-01-18 EDIT: The function to create VCF files out of a .txt file, this gives problems, explained later.
C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/Marie.VCF The database.txt file contains error C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/jean.VCF The database.txt file contains error 11-01-18 EDIT: Later it was found that this obviously does not work since the function checks the correctness of the .txt file and not the correctness of .vcf files,...
C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/Marie.VCF The database.txt file contains error C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/jean.VCF The database.txt file contains error 11-01-18 EDIT: Later it was found that this obviously does not work since the function checks the correctness of the .txt file and not the correctness of .vcf ...
export vcf donne des erreurs
solved ticket 8 about the export problem
Problem solved by making adjustments in the createVcf function in caporalCli.js and in the database.txt to make the vcf files have the structure that is expected by the parser.
createVcf succesfully makes vcf files from the database.txt file. But then if you want a vcf contact, just created, to go back in the database, with the import function, it gives parsing errors. These errors do not occur when a premade vcf file is imported, eventhough both files are already in the database file.
All single commas were changed to double commas, unnecessairy comments were deleted, and the structure of the code was revised but this was already in good state
I think the problem is that the VCF files that you can make, do not have a ###Domaine in them and are also one long line of text.
JS best practices
small error removed that i created
JS best practices
C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js createVcf database.txt
JS best practices
C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/Marie.VCF The database.txt file contains error C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/jean.VCF The database.txt file contains error
export vcf donne des erreurs
added my function
updated file
added files
'table'