Questions tagged [filestreams]

35 questions
0
votes
6 answers

Issue with FileOutputStream and DataOutput Stream

The problem is when I write a character using FileOutputStream it is readable. But when I chain it with DataOutputStream the written data becomes unreadable. Why is that ? Since both FileOutputStream and DataInputStream write in bytes to the file. …
Jeevan Varughese
  • 2,159
  • 2
  • 15
  • 20
0
votes
2 answers

Multiple use of same file streaming object

I've written the following source code: ifstream leggiFile; leggiFile.open("Questions.txt",ios::in); if (!leggiFile.good()) { cerr << "\n\n\n\tErrore during file opening Questions.txt\n\n\n" << endl; } else { //…
Uwe_98
  • 697
  • 1
  • 8
  • 21
0
votes
3 answers

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error

Good Day, I working in Android/IOS App using AIR 3.5. In this project I download ZIP file and extracted in specific folder, after that I using the assets ( IMG, XML and Sounds), everything work fine but when I load the sounds it's keep show this…
-1
votes
2 answers

TFileStream: Read block of data from file and replace it in Delphi 7

I would like to read a block of bytes from file (e.g. 400KB ), replace some text in the buffer and then write it to file. Originally I tried TFileStream with buffer array of bytes but then I stuck on the problem that stringreplace works with string.…
John Boe
  • 3,501
  • 10
  • 37
  • 71
-1
votes
1 answer

Copy ResourceStream In Stream

I need help in this code This is all code Request: TIdHTTPRequestInfo Response: TIdHTTPResponseInfo JQuery: TResourceStream procedure TServer.ActiveServer; begin DefaultPort := 8117; Active := True; OnCommandGet := FServerCommandGet; JQuery…
NINO SAN
  • 1
  • 3
1 2
3