Hello. I'm working on a project that requires data to be read from and written to a "fixed-length .dat file." I've googled this and have found a very general idea of what it is but not exactly how to create one. Is it simply just a standard text file? The project specifies that the data file must contain only the following fields and be in this format:
There are several different sets of data, all of which have the same fields. (Does this make sense? The above is the general format of the file)Code:Field1 Max length for value Value Field2 Max length for value Value Field1 Max length for value Value Field2 Max length for value Value
Is there any special type of format or code that I need to use to make this a fixed-length file? Would it involve using arrays to limit the maximum number of values or something? If so, what would be a good way to go about differentiating between the different sets?
Sorry if this is an obvious question or something. Let me know if I didn't explain something clearly or if I need to elaborate more. I would greatly appreciate any help with this problem.