hi all !
can we create an html file from a text file . The Text file has contents that are comma separated.
Please Advice
Cheers
KK
Printable View
hi all !
can we create an html file from a text file . The Text file has contents that are comma separated.
Please Advice
Cheers
KK
Try something as simple asVB Code:
Name "c:\hack.txt" As "c:\hack.htm"
hi !
thanks...
my text file has a structure like this
incase i useCode:10:00 am,hi there
10:01 am,how are you
, when i open the html file, the text is not properly structure , as in look does not match with the test fileCode:Name "c:\hack.txt" As "c:\hack.htm"
is there any way , the look of html file can be made same as text file
i mean row and column wise
To do formatting you'll need to add proper HTML tags.
Add HTML tags around your text like,
(writing from memory)
VB Code:
Dim strNewTxtData As String strNewTxtData = "<HTML>" & _ "<TITLE>My Html File</TITLE>" & _ "<BODY>" & _ "This is a line" & "<br>" & _ "this is another line" & _ "</BODY>" & _ "</HTML>" Dim F As Integer F = FreeFile Open "C:\MyHtmlFile.html" For Output As #F Print #F, strNewTxtData Close #F