SORTING For Beginners (Getting DATA from a File)

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

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.
You do not have the required permissions to view the files attached to this post.