Skip to content

reading a file produces odd (corrupt?) type statements #9829

Closed
@scabug

Description

@scabug

3 files attached (possibly 2 - mytext_repro_empty.txt is an empty file which something doesn't seem to like). Code below, modify XXX to pick files.

val source = scala.io.Source.fromFile(raw"C:\testfiles\myText_XXXX.txt")
val f = source.toSeq

using file mytext_repro_empty.txt I get

f: Seq[Char] = Stream()

which seems right. Using mytext_repro4.txt I get

f: Seq[Char] = Stream(-, ?)

which is well formed, I suppose, but don't know what the dash and question mark indicate. Using mytext_repro5.txt I get

, ?)eq[Char] = Stream(

which is evidently broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions