Sign in to follow this  
Followers 0
BlueScreen

Bold text issues

3 posts in this topic

Hi Guys,

I want to write to a text file a text in BOLD. How can I do it using 'FileWriteLine'?

10x

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You can't unless you are writing an html document. Filewriteline writes plain text files, not rtf or word files. If you can do it with notepad, you can do it with filewriteline.

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Alternatively...

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
\viewkind4\uc1\pard\b\f0\fs20 Test\b0\par
}

write that to a text file, and rename to a .rtf

Open with wordpad or word, and you should have "Test" in bold.

Edited by Davman

Sitting comfortably behind the code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0