GWbasic

For everything that's not in any way related to PureBasic. General chat etc...
alanuk
User
User
Posts: 68
Joined: Mon Oct 13, 2003 6:38 pm

GWbasic

Post 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
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

you cant just open and save them in txt file?
upnorth
User
User
Posts: 18
Joined: Wed Jul 21, 2004 8:54 pm
Location: California, USA

Post 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.
alanuk
User
User
Posts: 68
Joined: Mon Oct 13, 2003 6:38 pm

Post by alanuk »

Thanks UPNORTH, that will do the job nicely.

Alan
Post Reply