}
// Check that the vCard is a valid vCard 4.0 file.
+
+ vCard vCard4FormatCheck;
+
+ vCard4FormatCheck.LoadFile(Filename);
+
+ if (vCard4FormatCheck.Get("VERSION") != wxT("4.0")){
+
+ return CONTACTLOAD_FILEINVALIDFORMAT;
+
+ }
+
+ // Check that the vCard meets the base specification.
+
+ if (!vCard4FormatCheck.MeetBaseSpecification()){
+
+ return CONTACTLOAD_FILEBASESPECFAIL;
+
+ }