reading "binary" files cross-platform requires you to use "rb", BUT.reading non-"binary" files (aka text files) with "r" works cross-platform because all the data is INTERPRETED (whatever that means), and the stupid line endings get converted into correct ones.Windows is stupid and adds some stuff to end lines, and isn't smart as posix.So binary files are like normal files, but they are binary (whatever that means).So you just correct me if I say something wrong. Ok guys, I did some research and finally found out what binary files are. /r/programminghelp – for beginner questions about programming./r/programming – for discussion and news about computer programming./r/learnprogramming – for people interested in learning to code./r/dailyprogrammer – for programming challenges of varying difficulty./r/cs50 – Harvard's Introduction to Computer Science./r/cpp_questions – for questions about C++./r/cplusplus and /r/cpp – for discussions about C++./r/computerscience – for discussion about computer science./r/coding – for a tighter focus on code.r/C_Homework – another subreddit for questions r/cprog – another subreddit for articles and discussions ![]() CS50-Harvard's introduction to computer science with a C programming course.Ī Tutorial on Portable Makefiles Other Subreddits on C. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |