home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,381 of 243,242   
   Richard Heathfield to David Brown   
   Re: is_binary_file()   
   09 Dec 25 09:43:04   
   
   From: rjh@cpax.org.uk   
      
   On 09/12/2025 08:03, David Brown wrote:   
      
      
      
   > But surely on Windows you can just look at the file extension -   
   > if it is ".txt", it's a text file, otherwise it's a binary file.   
      
   It is now almost a decade since I last made (approximately   
   weekly) use of a Windows system. For the 25 years prior to that I   
   used a variety of extensions for text filenames, including:   
      
   txt - generic textfile   
   doc - documentation*   
   c   - C source   
   cpp - C++ source   
   h   - C or C++ header   
   tex - LaTeX source   
   ly  - Lilypond source   
   eml - email backup   
   cfg - configuration files   
   ini - initialisation files   
        - Makefiles and READMEs   
   sh  - shell script   
   asm - assembly language source   
   i   - C preprocessor output   
   bin - binary (contains only '0', '1', and '\n') - I found less   
   than a dozen of these, but there they were.   
      
   These are, of course, all also binary files. Whether a file that   
   contains only printable characters is text or binary is really a   
   matter of perspective more than anything else.   
      
   --   
   Richard Heathfield   
   Email: rjh at cpax dot org dot uk   
   "Usenet is a strange place" - dmr 29 July 1999   
   Sig line 4 vacant - apply within   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca