> Yes, but how can I detect a "binary" file? I'm not sure what would be easy way to do it.
Gedit gives following error message from binary files: "gedit has not been able to detect the character encoding. Please check that you are not trying to open a binary file. Select a character encoding from the menu and try again." So, maybe with "file" command? I think there should be some library for this, as so many programs needs this kind of functionality (Ubuntu Desktop, browsers, editors, ... ). Or, if file has ".dat" etc at end, it is considered as binary. I hope someone knows more about this. Jussi ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user