• Re: TXT file format?

    From Andy Burnelli@21:1/5 to Hergen Lehmann on Mon Aug 29 18:36:33 2022
    XPost: misc.phone.mobile.iphone, comp.sys.mac.apps

    Hergen Lehmann wrote:

    Am 27.08.22 um 08:55 schrieb David Chmelik:

    What is the plain-text (.TXT) file format specification on Android?
    UNIX & GNU/Linux, Apple, DOS all have .TXT formats that differ where
    carriage-return and line-break (new-line) are placed (so often display
    wrongly on other operating systems)... where or what are specifications
    for Android?

    I doubt there is a formal specification, as Android users are not even supposed to interact with "files".

    But Android is Linux-based and on Linux, the convention for text files
    is using LF as line separator and UTF8 encoding. Best practice for a programmer would be to accept all of CR,CRLF,LF for input and generate
    the OS's convention (here: LF) for output.

    If I want to edit a text file, what I normally do is put the file in my
    text folder on my sdcard and then name it 'foo.txt' and then when I tap on
    it from the file manager it opens up in my default text editor.

    Usually I make a shortcut to that file if it's something I need frequently, like a shopping list or an ad hoc address or impromptu phone number.

    I then put that desktop shortcut in the appropriate folder.

    Since I mount all of Android onto Windows as a drive letter over Wi-Fi, the same Android text files are editable on Windows vim also, despite the
    platform CR/LF differences.
    <https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Both sdcards mounted

    Windows vim even says at the bottom that it's using [unix] CR/LF formats. Perfectly compatible.

    Same the other way around.
    Perfectly compatible.

    Notice how compatible everything is _except_ Apple's idiotic walled garden.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan@21:1/5 to Andy Burnelli on Mon Aug 29 10:49:26 2022
    XPost: misc.phone.mobile.iphone, comp.sys.mac.apps

    On 2022-08-29 10:36, Andy Burnelli wrote:
    Hergen Lehmann wrote:

    Am 27.08.22 um 08:55 schrieb David Chmelik:

    What is the plain-text (.TXT) file format specification on Android?
    UNIX & GNU/Linux, Apple, DOS all have .TXT formats that differ where
    carriage-return and line-break (new-line) are placed (so often display
    wrongly on other operating systems)... where or what are specifications
    for Android?

    I doubt there is a formal specification, as Android users are not even
    supposed to interact with "files".

    But Android is Linux-based and on Linux, the convention for text files
    is using LF as line separator and UTF8 encoding. Best practice for a
    programmer would be to accept all of CR,CRLF,LF for input and generate
    the OS's convention (here: LF) for output.

    If I want to edit a text file, what I normally do is put the file in my
    text folder on my sdcard and then name it 'foo.txt' and then when I tap on
    it from the file manager it opens up in my default text editor.

    Usually I make a shortcut to that file if it's something I need frequently, like a shopping list or an ad hoc address or impromptu phone number.

    I then put that desktop shortcut in the appropriate folder.

    Since I mount all of Android onto Windows as a drive letter over Wi-Fi, the same Android text files are editable on Windows vim also, despite the platform CR/LF differences.
    <https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Both sdcards mounted

    Windows vim even says at the bottom that it's using [unix] CR/LF formats. Perfectly compatible.

    Same the other way around.
    Perfectly compatible.

    Notice how compatible everything is _except_ Apple's idiotic walled garden.

    In what way does Apple's "walled garden" impact any of this?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)