Jump to content

[SOLVED] file write


photo

Recommended Posts

	file_5 = File::create("aaa.txt", "w+");
	for (int i = 0; i < num; i++)
	{
		file_5->writeString("abcd\n");
	}
	//file_5->flush();
	file_5->close();

 

A strange string is added.

image.png.e8eb1e44ed01bee2c1b9c9f70c724941.png

Why is this happening?

 

Is it related to this?

image.png.49843a41cd717acf79d6f749cab1706a.png

Link to comment

Hello,

Is there any specific reason for writeString? Why not just use write?

WriteString is supposed to write binary data that is being read with readString, no human-readable text should be there. More likely by coincidence you've got a code for a dash.

Thanks.

 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • silent changed the title to [SOLVED] file write
×
×
  • Create New...