Hi
I have a program that writing data to a txt file.
How can I manipulate the data output in the txt file (Bold text,text in color...)?
Thanks in Adavnce.
Writing to a text file
Moderator: DosItHelp
Re: Writing to a text file
If you are displaying it in a web browser then you need to use HTML.
Re: Writing to a text file
I don't need it it web browser just to manipulate the text file itself
Re: Writing to a text file
foxidrive is more or less right. A txt file is just plain text. You don't have any additional information for formatting. You need a markup language (such as HTML, LaTex or RTF) and a programm (like a browser in case of HTML) that is able to parse and to interpret these formatting informations.
Regards
aGerman
Regards
aGerman
Re: Writing to a text file
Just to add some extra info: there are methods to colour text as it is printed to the console, but you will need to write code to echo your file in exactly the way you want it shown on the screen.
Search this forum for the thread about colouring/coloring text.
Here is one thread:
viewtopic.php?f=3&t=3248
Search this forum for the thread about colouring/coloring text.
Here is one thread:
viewtopic.php?f=3&t=3248