Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Structured Programming
It has been kindly pointed out to me that Liberty Basic does have an alternative to the PROCedures used in BBC BASIC (for Windows) needed for true Structured Programming as below. I wonder how the experts on programming view the LB way

Gordon

'copy two files into one
fileOne$ = "first.txt"
fileTwo$ = "second.txt"
combined$ = "together.txt"
call mergeFiles fileOne$, fileTwo$, combined$

end

sub mergeFiles firstFile$, secondFile$, merged$
open merged$ for output as #merged
open firstFile$ for input as #first
print #merged, input$(#first, lof(#first));
close #first
open secondFile$ for input as #second
print #merged, input$(#second, lof(#second));
close #second
close #merged
end sub
Reply


Messages In This Thread
Structured Programming - by GordonSweet - 12-05-2005, 04:29 PM
Structured Programming - by Plasma - 12-05-2005, 05:09 PM
Structured Programming - by GordonSweet - 12-05-2005, 07:57 PM
Structured Programming - by axipher - 12-05-2005, 08:19 PM
Structured Programming - by marzecTM - 12-05-2005, 08:35 PM
Structured Programming - by yetifoot - 12-05-2005, 09:58 PM
Structured Programming - by MystikShadows - 12-05-2005, 10:58 PM
Structured Programming - by TheDarkJay - 12-05-2005, 11:02 PM
Structured Programming - by yetifoot - 12-06-2005, 12:47 AM
Structured Programming - by TheDarkJay - 12-06-2005, 01:07 AM
Structured Programming - by axipher - 12-06-2005, 06:45 AM
Structured Programming - by Agamemnus - 12-06-2005, 07:00 AM
Structured Programming - by axipher - 12-07-2005, 02:05 AM
Structured Programming - by Agamemnus - 12-07-2005, 07:57 AM
Structured Programming - by axipher - 12-07-2005, 08:47 AM
Structured Programming - by GordonSweet - 12-07-2005, 12:51 PM
Structured Programming - by axipher - 12-07-2005, 08:06 PM
Structured Programming - by na_th_an - 12-07-2005, 08:16 PM
Structured Programming - by GordonSweet - 12-07-2005, 09:01 PM
Structured Programming - by yetifoot - 12-07-2005, 11:48 PM
Structured Programming - by na_th_an - 12-07-2005, 11:50 PM
Structured Programming - by Frenkel - 12-08-2005, 01:54 AM
Structured Programming - by axipher - 12-08-2005, 03:54 AM
Structured Programming - by yetifoot - 12-08-2005, 04:02 AM
Structured Programming - by axipher - 12-08-2005, 04:07 AM
Structured Programming - by GordonSweet - 12-08-2005, 12:29 PM
Structured Programming - by Frenkel - 12-08-2005, 03:20 PM
Structured Programming - by axipher - 12-08-2005, 07:02 PM
Structured Programming - by Agamemnus - 12-08-2005, 08:29 PM
Structured Programming - by marzecTM - 12-08-2005, 08:38 PM
Structured Programming - by thegrogen - 12-08-2005, 09:36 PM
Structured Programming - by axipher - 12-09-2005, 02:27 AM
Structured Programming - by Z!re - 12-09-2005, 02:59 AM
Structured Programming - by Deleter - 12-09-2005, 03:02 AM
Structured Programming - by axipher - 12-09-2005, 03:20 AM
Structured Programming - by marzecTM - 12-09-2005, 03:28 AM
Structured Programming - by axipher - 12-09-2005, 03:43 AM
Structured Programming - by Moneo - 12-09-2005, 05:39 AM
Structured Programming - by axipher - 12-09-2005, 05:49 AM
Structured Programming - by Moneo - 12-09-2005, 06:11 AM
Structured Programming - by axipher - 12-09-2005, 06:58 AM
Structured Programming - by Z!re - 12-09-2005, 03:33 PM
Structured Programming - by na_th_an - 12-09-2005, 04:53 PM
Structured Programming - by Z!re - 12-09-2005, 05:06 PM
Structured Programming - by marzecTM - 12-09-2005, 05:23 PM
Structured Programming - by Deleter - 12-09-2005, 05:26 PM
Structured Programming - by na_th_an - 12-09-2005, 05:41 PM
Structured Programming - by GordonSweet - 12-09-2005, 07:27 PM
Structured Programming - by axipher - 12-09-2005, 08:05 PM
Structured Programming - by GordonSweet - 12-09-2005, 09:15 PM
Structured Programming - by marzecTM - 12-09-2005, 10:00 PM
Structured Programming - by Moneo - 12-10-2005, 07:20 AM
Structured Programming - by axipher - 12-10-2005, 09:17 PM
Structured Programming - by Agamemnus - 12-11-2005, 07:33 AM
Structured Programming - by yetifoot - 12-11-2005, 07:52 AM
Structured Programming - by axipher - 12-11-2005, 08:29 AM
Structured Programming - by Agamemnus - 12-11-2005, 10:18 AM
Structured Programming - by axipher - 12-11-2005, 10:29 AM
Structured Programming - by Agamemnus - 12-11-2005, 11:28 AM
Structured Programming - by axipher - 12-12-2005, 01:49 AM
Structured Programming - by Nemesis - 12-13-2005, 11:26 AM
Structured Programming - by GordonSweet - 12-13-2005, 12:46 PM
Structured Programming - by axipher - 12-13-2005, 08:09 PM
Structured Programming - by Agamemnus - 12-14-2005, 11:24 AM
Structured Programming - by axipher - 12-14-2005, 06:52 PM
Structured Programming - by Agamemnus - 12-15-2005, 10:02 AM
Structured Programming - by GordonSweet - 12-15-2005, 12:29 PM
Structured Programming - by axipher - 12-15-2005, 08:05 PM
Structured Programming - by na_th_an - 12-15-2005, 08:26 PM
Structured Programming - by axipher - 12-15-2005, 08:47 PM
Structured Programming - by na_th_an - 12-15-2005, 08:51 PM
Structured Programming - by GordonSweet - 12-15-2005, 09:29 PM
Structured Programming - by na_th_an - 12-15-2005, 10:21 PM
Structured Programming - by GordonSweet - 12-16-2005, 12:19 AM
Structured Programming - by axipher - 12-16-2005, 05:16 AM
Structured Programming - by speedlemon - 12-16-2005, 06:20 AM
Structured Programming - by yetifoot - 12-16-2005, 06:24 AM
Structured Programming - by axipher - 12-16-2005, 06:42 AM
Structured Programming - by LooseCaboose - 12-16-2005, 07:13 AM
Structured Programming - by axipher - 12-16-2005, 07:29 AM
Structured Programming - by Mango - 12-16-2005, 09:22 AM
Structured Programming - by LooseCaboose - 12-16-2005, 11:06 AM
Structured Programming - by axipher - 12-16-2005, 07:07 PM
Structured Programming - by Anonymous - 12-16-2005, 07:19 PM
Structured Programming - by axipher - 12-16-2005, 07:30 PM
Structured Programming - by Carl Gundel - 12-16-2005, 09:52 PM
Structured Programming - by yetifoot - 12-16-2005, 11:58 PM
Structured Programming - by axipher - 12-17-2005, 06:46 AM
Structured Programming - by stylin - 12-17-2005, 09:28 AM
Structured Programming - by Deleter - 12-17-2005, 09:41 AM
Structured Programming - by Carl Gundel - 12-17-2005, 07:12 PM
Structured Programming - by thegrogen - 12-17-2005, 10:05 PM
Structured Programming - by Agamemnus - 12-17-2005, 10:16 PM
Structured Programming - by axipher - 12-17-2005, 11:18 PM
Structured Programming - by stylin - 12-17-2005, 11:30 PM
Structured Programming - by axipher - 12-18-2005, 12:00 AM
Structured Programming - by stylin - 12-18-2005, 12:11 AM
Structured Programming - by axipher - 12-18-2005, 01:03 AM
Structured Programming - by Z!re - 12-18-2005, 04:31 AM
Structured Programming - by Moneo - 12-18-2005, 06:36 AM
Structured Programming - by Z!re - 12-18-2005, 08:29 AM
Structured Programming - by marzecTM - 12-18-2005, 08:47 AM
Structured Programming - by stylin - 12-18-2005, 09:58 AM
Structured Programming - by marzecTM - 12-18-2005, 10:15 AM
Structured Programming - by Z!re - 12-18-2005, 10:22 AM
Structured Programming - by marzecTM - 12-18-2005, 10:24 AM
Structured Programming - by Z!re - 12-18-2005, 10:25 AM
Structured Programming - by Sumo Jo - 12-18-2005, 10:26 AM
Structured Programming - by marzecTM - 12-18-2005, 10:28 AM
Structured Programming - by Sumo Jo - 12-18-2005, 10:37 AM
Structured Programming - by marzecTM - 12-18-2005, 10:47 AM
Structured Programming - by Z!re - 12-18-2005, 10:51 AM
Structured Programming - by stylin - 12-18-2005, 11:11 AM
Structured Programming - by marzecTM - 12-18-2005, 11:20 AM
Structured Programming - by stylin - 12-18-2005, 11:23 AM
Structured Programming - by marzecTM - 12-18-2005, 05:24 PM
Structured Programming - by na_th_an - 12-18-2005, 11:09 PM
Structured Programming - by axipher - 12-19-2005, 12:10 AM
Structured Programming - by stylin - 12-19-2005, 01:50 AM
Structured Programming - by axipher - 12-19-2005, 02:07 AM
Structured Programming - by speedlemon - 12-19-2005, 04:57 AM
Structured Programming - by Zap - 12-19-2005, 05:17 AM
Structured Programming - by Moneo - 12-19-2005, 06:04 AM
Structured Programming - by axipher - 12-19-2005, 06:23 AM
Structured Programming - by Moneo - 12-19-2005, 06:24 AM
Structured Programming - by stylin - 12-19-2005, 06:28 AM
Structured Programming - by axipher - 12-19-2005, 06:39 AM
Structured Programming - by Moneo - 12-19-2005, 06:41 AM
Structured Programming - by axipher - 12-19-2005, 06:55 AM
Structured Programming - by Agamemnus - 12-19-2005, 08:44 AM
Structured Programming - by axipher - 12-19-2005, 09:29 AM
Structured Programming - by thegrogen - 12-19-2005, 09:38 AM
Structured Programming - by axipher - 12-19-2005, 09:56 AM
Structured Programming - by thegrogen - 12-19-2005, 10:04 AM
Structured Programming - by stylin - 12-19-2005, 10:05 AM
Structured Programming - by Z!re - 12-19-2005, 10:07 AM
Structured Programming - by axipher - 12-19-2005, 10:22 AM
Structured Programming - by thegrogen - 12-19-2005, 10:23 AM
Structured Programming - by Agamemnus - 12-19-2005, 10:42 AM
Structured Programming - by marzecTM - 12-19-2005, 11:03 AM
Structured Programming - by yetifoot - 12-19-2005, 06:52 PM
Structured Programming - by axipher - 12-19-2005, 08:58 PM
Structured Programming - by Agamemnus - 12-20-2005, 01:10 AM
Structured Programming - by Z!re - 12-20-2005, 01:15 AM
Structured Programming - by axipher - 12-20-2005, 06:44 AM
Structured Programming - by Agamemnus - 12-21-2005, 03:21 AM
Structured Programming - by axipher - 12-21-2005, 07:29 AM
Structured Programming - by Agamemnus - 12-21-2005, 11:08 AM
Structured Programming - by axipher - 12-21-2005, 08:10 PM
Structured Programming - by GordonSweet - 12-28-2005, 01:40 PM
Structured Programming - by Moneo - 01-01-2006, 12:46 AM
Structured Programming - by Blitz - 01-20-2006, 11:25 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)