I have seen a lot of ways to read/write to a file. So many ways, that I would like some clarification from you more experienced types, as well as the best recommendations. Rework is a pet peeve of mine. Sooo, I'd rather start reading/writing files in the preferred manor.
1) The compiler directive {$I}: I remember using it 30 years ago...(TP1-6; never Delphi). Not used now in favor of "try...except..."?
2) Assign? Assignfile?
3) Binary files? UTF8ToSys (OpenDialog...)? Is this the only way to read/write binary files?
4) Utilizing "FileMode"? If I open the file to read it in (FileMode := 0) and then want to add some data, I'll have to modify the FileMode (FileMode := 1). Isn't that a lot of extra work? (Again, from my experience 30 years ago...)
It seems to me that all of this complicates coding... See my dilemma? Any and all thoughts are appreciated!
Thanks!