Page 1 of 1

GWbasic

Posted: Sun Aug 29, 2004 2:42 pm
by alanuk
I am trying to print out or at least copy to a text file some GWbasic programs which I want to convert to PB. Being a DOS program I can't see a way to use cut and paste to the clipboard.

I need the files to retain their original format, ie line numbers etc.

I've never used GWbasic, so I am not very familiar with it.

Any ideas please?

Alan

Posted: Sun Aug 29, 2004 3:54 pm
by thefool
you cant just open and save them in txt file?

Posted: Sun Aug 29, 2004 4:36 pm
by upnorth
Open the file with GWBasic, then save it with the ,a switch like this:

Code: Select all

SAVE"hello.bas",a
Then you can open hello.bas in notepad or another text editor and see all the origrinal formatting.

Hope this helps.

Posted: Mon Aug 30, 2004 6:40 am
by alanuk
Thanks UPNORTH, that will do the job nicely.

Alan