SORTING For Beginners (Getting DATA from a File)

Programming Tools, Tips, and Tutorials.
Post Reply
Welopez
Posts: 56
Joined: Fri Jan 07, 2005 11:16 pm
Location: Currently living in Riverside, CA
Contact:

SORTING For Beginners (Getting DATA from a File)

Post by Welopez »

Getting data from a sample data file to load and sort a multi-dimensioned array. Sort the array using a selected data field. Write the sorted array to an output file.

The array "myContacts$(x,y)" gets 13 records, of 4 fields each, from "myTestData.txt". Sorting can be selected from surname, christian name, age, or telephone number. The sorted array is output to "myContacts.txt".

Source code is included as dataSort.bas, and myTestData.txt for practice. When printing myContacts.txt, myTestData.txt remains unchanged so you can continue practice while making modifications to the source code.
Attachments
SORTING_for_Beginners.zip
(1.83 KiB) Downloaded 1335 times
Post Reply