From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afc5f41f146b8270,start X-Google-Attributes: gid103376,public From: "Matt" Subject: Loading an array from a text file.... Date: 2000/03/18 Message-ID: <8b0kre$p9j$1@neptunium.btinternet.com>#1/1 X-Deja-AN: 599276862 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: BT Internet X-MSMail-Priority: Normal Newsgroups: comp.lang.ada Date: 2000-03-18T00:00:00+00:00 List-Id: Yo. Having a bit of trouble with Ada at the moment. I am trying to write a database for a university coursework kinda-thingy, but have hit a brick wall! The idea is thus: When my program first runs, it loads from a text file a list of students, the courses & units they are on, results etc and stores the strings into an array of records. However, during my program, the text file will be changed (For example, if another student is added or results are changed) and I will want to re-load the array from the 'new' txt file. I can't do this as a function, becasue i don't want any result, I just want it to perform a few lines of code. I could really just re-write the code at various points in the program, but i don't want the main program to be too 'busy' - bearing in mind this has to be moderated! Any feedback appreciated. Regards, Matt