Closed
Description
When using haxe.Resource
, the line-endings of a txt file is automatically converted to CRLF on Windows when targeting C#.
Given a text file, "test.txt", with the content test\ntest
, compile and run the following:
class Test {
static function main() {
trace(haxe.Resource.getString("test.txt").length); //10, but should be 9
}
}
-cs bin
-main Test
-resource test.txt
-cmd bin\bin\Test.exe
Activity