Revision as of 16:48, 12 June 2008 by Forum Nokia KB (Talk | contribs)

Archived:Redirecting stdin and stdout streams in Open C

From Nokia Developer Wiki
Jump to: navigation, search


ID TSS001020 Creation date June 12, 2008
Platform S60 3rd Edition
S60 3rd Edition, FP1 and FP2
Category Symbian C++ Subcategory Open C, SDK & Tools


By installing the optional stdioserver.sis package from Open C deliverables, a console for debugging purposes will be created. By default, stdout will be directed to this console and stdin will also take its input from it.

It is possible to configure the redirection of these standard streams by modifying the stdioserver's config.ini file.


config.ini is installed as part of the stdioserver.sis package.

In the emulator, it is installed in \epoc32\winscw\c\system\data.
In the device, it is installed in c:\system\data.

A sample config.ini is shown below. Here, stdin input is taken from a console and stdout is redirected to a serial port. The file also contains sections for input from a file [MEDIA1] and output to a file [MEDIA4], although they are not used in this case.

 type = file
 path = C:\system\data\in.txt
 max size = 100
 type = serial
 baud = 214
 port = COMM::10
 type = console
 width = -1
 height = -1
 type = file
 path = c:\system\data\out.txt
 max size = 1000
54 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.