|
-
Nov 2nd, 2000, 06:57 AM
#1
I want to make a new file format for my vb program having a picture file and some text binded in the same file. How do I do it?
...And how can I read back the picture as well as the text from the file.
-
Nov 2nd, 2000, 08:16 AM
#2
Fanatic Member
That is an interesting task to try. I read your question and the thought immediately came to mind of using a binary file, place the image in the file then the text (as binary of course). Put a header in the file which you will read first that states the size of the image and size of the text so you know how much to read from the file.
This is a total off the wall idea, I do not know if this is more trouble than it is worth but there you go....
-
Nov 2nd, 2000, 08:53 AM
#3
transcendental analytic
Not at all, i've developed my own format myself thats able to pack any file into it into a directoy structure, like .PAK and .WAD
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 12th, 2000, 07:06 AM
#4
Thanks for replying...but i have little idea of using Binary files. Could you please explain it to me?
-
Nov 12th, 2000, 07:40 AM
#5
Frenzied Member
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|