![]() |
Visual Basic help needed!
Code:
Open "c:\stuff\content.txt" For Input As #1 Code:
texten = Replace(texten, Chr(44), "hahaha44") <-- (special HTML chr for comma.) |
*bump*****
|
huh weird! I wonder why a coma is causing a new line??
BTW im not that familiar with vb but is: Input #1, texten the same as Line Input #1, texten??? Line input should grab all the text untill it meets a linefeed...so coma shoulnt be a prob?... I dunno... |
Hey! I just changed it to
Line Input #1, texten and it worked! Thanks! :-) |
no prob :)
glad I could help ;) |
Private Sub LoadContents(Lst As Object, sPath As String)
Dim iFN As Integer Dim sEntry As String Lst.Clear 'clear the list iFN = FreeFile ' get a free filenumber Open sPath For Input As iFN ' open the file Do Until EOF(iFN) ' loop until end of file (EOF) reached Line Input #iFN, sEntry ' get the next entry Lst.AddItem sEntry ' add entry to the list Loop Close iFN ' close the file End Sub |
All times are GMT -7. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123