|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Not write carriage return when writting to a file
I am having difficulty preventing VB from writting carriage returns to a file. I accept multiple input values from the screen and write to a file, but it appends a carriage return during the write so I can't use the remove(string, vbCrLf) from the variable. Is there any way to write multiple variables to a file without appending the x'0d' for the carriage return? Thanks.
|
|
#2
|
|||
|
|||
|
when writing a file are you using a text box with multiline set to true?
|
|
#3
|
|||
|
|||
|
U can use vb filesystem object..
1.add the reference of the MS Script Runtime to your project. 2.put this code in your program: sub writelines2file(filename as string,filecontent as string) dim fso as new filesystemobject dim txt as textstream txt=fso.createtextfile(filename,true) txt.write filecontent txt.close set txt=nothing set fso=nothing end sub To see more information: http://msdn.microsoft.com/library/d...ofilesystem.asp |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Not write carriage return when writting to a file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|