Writing Tabb seperate textfiles

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

Need help have created a standard rutin that open a file and write a line of
what I think is tabb seperated string values according msdn help the
Printline method should print the values with tabb sepaerated ei

file.open(1,"c:\myfile.txt",OpenMode.Output)
PrintLine(1, "Happy","Camper")
Ffile.close(1)

This should produce a tabb seperated text file that I can open i excel to
verify that the file is actually tabb seperated the problem is that excel
doesn't recognize that the values are tabb seperated but only recognizes that
there are blank spaces.

My Question is how do I truely get a tabb seperated textfile that is
recognized as such in excel??
 
Dim sw As New IO.StreamWriter("C:\Test File.txt")
sw.WriteLine("VB.NET" & ControlChars.Tab & "Example")
sw.Flush()
sw.Close()

Crouchie1998
BA (HONS) MCP MCSE
 
Back
Top