Skip to content

TXT files Line Ending problem (I suppose) #3

@miorsoft

Description

@miorsoft

I tried reviewing some of my old programs.
(https://github.com/Planet-Source-Code/PSCIndex/blob/master/ByAuthor/reexre.md)

I noticed that TXT files (which I've used often) don't work as they should.

Basically, using the (Input #1, S) input statement,
the text files are read all at once, not line by line as the code would expect. This causes an error.

So I think it's a line-ending problem. (CR CR LF, or \r\r\n.)

This can be fixed manually if the TXT files in question are few and short, by re-editing them.
But otherwise, it's very painful.

(https://bornsql.ca/blog/the-hell-of-git-line-endings-and-the-not-so-simple-fix/)
It might help... maybe...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions