Java FileOutputStream tarafından yazılmış bir metin dosyası var.
When i read that file using file_get_contents
, then everything is on same line and there are no separators between different strings.
I need to know, how to read/parse that file so i have some kind on separators between strings
Ben dosyayı kaydetmek için, böyle somethig kullanıyorum:
Stream stream = new Stream(30000, 30000);
stream.outOffset = 0;
stream.writeString("first string");
stream.writeString("second string");
FileOutputStream out = new FileOutputStream("file.txt");
out.write(stream.outBuffer, 0, stream.outOffset);
out.flush();
out.close();
out = null;