![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: problem with writing charOf(10) to a stream Topic Summary: Created On: 3-Apr-2008 11:20 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Without knowing about your application: one way to go round this it to open the stream write as binary, then there will be no character translations by DOORS. E.g. Stream out = write binary "c:\\local\\test.txt" | |
![]() |
|
Hi
I open a stream for writing, and write a string including ascii character 10 (hex 0xA) to it. For some reason, character 0xA is preceded with 0xD. So not only the new line character, but also the carriage return character is written to the file. When writing other characters (e.g. 0xB), only that character is written to the file, so the behaviour is correct then. Why?!? Is there a workaround to avoid this unwanted behaviour? Thanks! Sjors Reproduce with Edited: 3-Apr-2008 at 11:25 by Sjors de Leeuw |
|
![]() |
|
![]() |
|
Without knowing about your application: one way to go round this it to open the stream write as binary, then there will be no character translations by DOORS.
E.g. Stream out = write binary "c:\\local\\test.txt" ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Peka, thanks for the valuable hint. This works.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
problem with writing charOf(10) to a stream
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.