You want to include color information in an OutputStream, but OutputStreams don't naturally contain color information. You need to depend upon wherever your stream is going to make the color happen. Some places that read the content of an OutputStream may be able to recognize certain codes and display colors based on those codes, but there is nothing universal.
bguild has already answered your question.
Your writer just writes characters to the output stream. Characters do not have fonts, colors, or anything else, they are just characters.
Depending on where your file is displayed, characters in the file may be interpreted as formatting information according to some standard, eg RTF or HTML. That depends on on how and where the file is being displayed. There is no problem writing RTF or HTML codes to your file, if that's appropriate
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.