I picked up data from .txt file. But i want to get font name and font size of .txt file so that render it properly. Note pad shows data in its font and font size accordingly.
Printable View
I picked up data from .txt file. But i want to get font name and font size of .txt file so that render it properly. Note pad shows data in its font and font size accordingly.
.txt files only store the asci characters...they don't store any font/size details.
It would have to be a rich text file format or some other file format if you needed to store such information.
Then how note pad shows the data in font and font size set by the user. U write text and set font and font size. close notepad and then reopen notepad, ur font and fontsize is preserved.
but notepad sets a reminder in your registry...so it knows what font/size you where using last.
If you open a different .txt file with notepad...it should use the last settings.