|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP Text File Access
Hello
I m storing some data into text files using FileSystemObject but when i try to retrieve it usng object.ReadAll it reads all the lines and shows the text on one line though there is a carriage return And also how to Append text files to starting of files.When i write to files the new data gets appended to the end of the previous data , I want to append the data to top of File Please tell me how to do so |
|
#2
|
||||
|
||||
|
Do this, assume the contents variable holds the text from the text file.
Code:
contents = crlfToBr(contents)
Response.write(contents)
Function crlfToBr(strValue)
If Not IsNull(strValue) Then
strValue = Replace(strValue, chr(13) & chr(10), "<br>")
End If
crlfToBr = strValue
End Function
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > ASP Text File Access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|