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, so this was not the real error. The real error is explained further down.
Last edit: Gijs Verhoeven 2018-01-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Last edit: Gijs Verhoeven 2018-01-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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, so this was not the real error. The real error is explained further down.
Last edit: Gijs Verhoeven 2018-01-11
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.
Last edit: Gijs Verhoeven 2018-01-11
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.
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.
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.
Last edit: Gijs Verhoeven 2018-01-11