I'm kinda new here but i've been using au3 since March, to help with Dialog Boxes and Installations automation.
Now that I'm trying to bring au3 to file management, I'm having some problems reading .vmg files. These files (example attached. NOTE: The true file extension is .vmg, but the forum does not allow it to be uploaded) are created with Nokia Message Editor, from Nokia PC Suite for Nokia's Mobile Phones. When you copy sms messages from your phone to your PC, they are converted to .vmg files (each file for each message).
I'm posting the content of the example .vmg file below (Ctrl+C from Windows Notepad and direct unformatted Ctrl+V):
//-------------------------- begin .vmg file -------------------------//
BEGIN:VMSG
VERSION:1.1
X-IRMC-STATUS:UNSENT
X-IRMC-BOX:INBOX
BEGIN:VCARD
VERSION:2.1
N:
TEL:+351964651189
END:VCARD
BEGIN:VENV
BEGIN:VCARD
VERSION:2.1
N:
TEL:+400123456789
END:VCARD
BEGIN:VENV
BEGIN:VBODY
Date:21-12-2005 11:24:50
this is the text part of the sms message. it can contain virtually unlimited chars.
END:VBODY
END:VENV
END:VENV
END:VMSG
//-------------------------- end .vmg file -------------------------//
As you may observe, the content is perfectly splitted and organized. In Notepad, the content is in a single line, and line breaks appear as square boxes.
When I try to read content from this file into au3, every char is followed by an empty or unknown string. But cetain functions like FileRead() or FileReadLine() don't work properly. They just return one char at a time, even if I tell them to read 1000 chars...
Other functions like _FileCountLines() return NEGATIVE values and _FileReadToArray() returns ONE SINGLE char.
Is anybody there who can help me on this? Do I need to open those files in another way? Am I missing some vital information about file management, like... Does au3 only support plain text files?
Thanks in advance for your help...
Keep up the good work






