data file conversion

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
calvinwels
Newbie
Posts: 4
Joined: Fri Oct 09, 2009 8:18 pm

data file conversion

Post by calvinwels »

I have a rather large data file created using QBasic (and using MBF numeric data format). I hope at some point to try vBasic to mange this data file but would need to convert it to sdf format. Is there some utility that would convert a qbasic formatted data file to sdf for use in vbasic?
Thanks for your help
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Microsoft Binary Format? Wow, that is historical data.

Why can't you just make a program to convert the data to a WRITE # or PRINT # format file? Those will work in VB.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
calvinwels
Newbie
Posts: 4
Joined: Fri Oct 09, 2009 8:18 pm

data file conversion

Post by calvinwels »

Thanks for the reply. If I create a new data file using a print # statement in a utility program, will I need to create an artificial extension on the file (eg mdf) for vb to recognize the file? VB certainly doesn't like the format in its current state.
Yes, the data in this file goes back to 1992 and is still in use.
Thanks again for your help
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

I don't think ANY extension would affect VB. So use anything you want.

If you use WRITE, you can use a CSV extension so that Excel spreadsheets can read it too.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
calvinwels
Newbie
Posts: 4
Joined: Fri Oct 09, 2009 8:18 pm

data file conversion

Post by calvinwels »

I'll give it a try and let you know.
Thanks again
calvinwels
Newbie
Posts: 4
Joined: Fri Oct 09, 2009 8:18 pm

Post by calvinwels »

The file conversion worked as advertised! The data is now in a CSV file, so now on to getting the vb program up and running.
Thanks for your help.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

No problem! I hope that it works as planned. Many times I made the code in QB and could paste it directly into VB. Unfortunately those binary formats were not included in VB.

Good luck!
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply