in reply to Trying to write a subroutine to return if file is Text or Binary
Hi csorrentini, welcome to the monastery.
To me, it sounds like you have made a text file, and the text is 1's and 0's. Is this the case? If so, then it's not really a binary file, it's still a text file. I'm not sure how the binary flag is set (maybe a wiser monk could help...) but you could try pointing your sub at a JPG or video file.
Also, you might want to read How do I post a question effectively?. Putting code in <code> tags helps readibility a lot.
|
|---|