+ wxFile ContactFile;
+
+ if (!ContactFile.Open(Filename, wxFile::read, wxS_DEFAULT)){
+
+ return CONTACTLOAD_FILEERROR;
+
+ }
+
+ // 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;
+
+ }
+