forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


List Loadfile Help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
dmonckton
Contributor
Contributor


Joined: 09 Aug 2002
Posts: 117
Location: Lewes, U.K.

PostPosted: Tue Aug 11, 2009 2:57 pm    Post subject: List Loadfile Help Reply with quote

Hi

How do I load a file that contains hex data into a list? The file contains only hex numbers some of which are $00, the list sees this as a NULL termination and I only get a small fragment of the original file.
Code:
list create,1
list loadfile,1,@env(userprofile)\desktop\pa_04.syx

The .syx file is a standard way of storing MIDI instrument data and I want my app to use these rather than .txt files.

Thanks

David...
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Aug 11, 2009 3:29 pm    Post subject: Reply with quote

Can you send an example of one of those files. I am not familiar with this file type.
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dmonckton
Contributor
Contributor


Joined: 09 Aug 2002
Posts: 117
Location: Lewes, U.K.

PostPosted: Wed Aug 12, 2009 8:28 am    Post subject: Reply with quote

Here is a typical syx file. You'll need to change the extension from .txt to .syx. If you look at it with a Hex editor you will see its proper format, it doesn't appear right in notebook.

Thanks

David...



PAA_04.txt
 Description:
Typical sysex file.

Download
 Filename:  PAA_04.txt
 Filesize:  63.98 KB
 Downloaded:  1108 Time(s)

Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Aug 13, 2009 4:18 pm    Post subject: Reply with quote

Ok first of all these files are not text only files. Actually they have only binary characters in them so you would not be able to read and write them with the VDS List commands and functions. If you are using VDS 5 or older you would use the BINFILE commands and functions. If you are using VDS 6 then you will need to use the new I/O commands and functions to read and write these files. There is a demo that comes with VDS that details how to read and write binary files. Look for a project in your demo folder that is called hexedit. The hexedit project will show you how to read and write binary files.
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group