==== Reading in Files ==== ReadInFile - the basic ReadInUnicode - used to get IrfanView's ini file, so we can modify it. ReturnFileAsArrayOfRows - returns array, with each element being a row in the file. GetFixedData - no delimiter, col numbers are number of characters in each column, max 3 columns to start ExtractData - file is text file with default "---- " breaking entries Arguments: 1-filename 2-if IndexName is "" then returns all, if an "*" then returns names and data in 2-column matrix use ExtractDataNames to get all names in file 3-RetrievalType returns: 1-whole entry in string [e.g. hotel data, board minutes] 2-first row only in string 3-entry in array of 2: 0-first row, 1-rest of entry 4-entry in array of 3: 0-first row, 1-second row, 2-rest of entry (removing first row if empty) 5-entry in array of 4: 0-Name, 1-first row, 2-second row, 3-rest of entry (removing first row if empty) 6-entry in array: rows-entries, columns-rows in data table (-> now max four rows of data) [not in use] 4-optional Delim ReadInDelimData - put into matrix array based on delimited rows ==== Saving Files ==== These three take a text string as input. Only SaveIfChanged gets any use. SaveFile SaveIfChanged - calls SaveFile SaveWithWarning - calls SaveIfChanged InsertIntoHtm - Inserts a chunk into an exiting htm file. To get from array to a string, use the Ravel macro.