First I'm noticing that user names that are less than 8 characters are getting s ome piece of the word "unknown" appended to them. For
example, a username of "T rip" looks like "Tripown" when I pull it from the file (The BBS reads it properl y).
On 07 May 2021, Andy Gorman said the following...
First I'm noticing that user names that are less than 8 characters ar getting s ome piece of the word "unknown" appended to them. For example, a username of "T rip" looks like "Tripown" when I pull it fr the file (The BBS reads it properl y).
are you correctly fetching the first byte of the username as the length?
if you read through all the users using the same set of variables you can definitely end up with unexpected data in memory.
Second, when I loop through the file using the structure g00r00 has provided (th ank you! :) ), it seems that the byte count gets thrown off by one right after t he Birthday field. Which she is
Second, when I loop through the file using the structure g00r00 has provided (th ank you! :) ), it seems that the byte count gets thrown by one right after t he Birthday field. Which she is
I don't know how to help you here without seeing code. But here is a
very simple loop through the users using the barebones file I/O with no buffering or streaming, etc. If this doesnt work for you let me know it could be possible that the latest records aren't the ones that are included.
Well, that seems to work. Main differences was that I didn't include
the record s file, I just included the RecUser type and things that I thought were needed. Clearly, I missed some of the required stuff.
Okay in that case you probably just needed a {$PACKRECORDS 1} in there
at the top. You will see that in the records.112 so just copy that one line in there and that will probably fix up your original code too.
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 91 |
Nodes: | 16 (0 / 16) |
Uptime: | 16:13:51 |
Calls: | 5,074 |
Calls today: | 6 |
Files: | 8,491 |
Messages: | 352,913 |
Posted today: | 1 |