Windows edit controls represent newlines as \r\n.
Windows/DOS text files represent newlines as \r\n.
If you want to read text from a file into an edit control, make sure you open it in "b" mode (eg fp = fopen("\\config.sys", "rb");).
If b is not specified, the file is opened in text mode, which causes \r\n to be transformed into \n, and edit controls do not translate a single \n into a newline. They represent it as a blob instead.
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )