| | |
string manip help
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2009
Posts: 10
Reputation:
Solved Threads: 0
lets say i have a text file with the string "ffffffffff" in it and i want to insert "666" after the 2nd "f" in it.. how to do it? i tried the following and it doesnt work..
i tried stream.BaseStream.Seek(2, SeekOrigin.Begin) and it doesnt work too..
VB.NET Syntax (Toggle Plain Text)
Dim stream As New System.IO.StreamWriter("xxx.txt") stream.Write("ffffffffff") stream.BaseStream.Position = 2 stream.Write("666") stream.Close()
Last edited by Ancient Dragon; Jan 15th, 2009 at 8:09 pm. Reason: add code tags
![]() |
Similar Threads
- Input Stream Questions (C++)
- Open 2 excel sheets (VB.NET)
- Open 2 excel sheets (VB.NET)
- multi dimensional arrays (Java)
- Text RPG Problem (C++)
- overloading Operator << to accept endl (C)
Other Threads in the VB.NET Forum
- Previous Thread: Complier for flash drive
- Next Thread: adding items from combobox as submenu items
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array assignment basic binary bing button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel file-dialog firewall folder ftp google hardcopy image images insert isnumericfuntioncall listview login math memory mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port print problemwithinstallation project reports" save savedialog searchbox serial soap sql string table tcp temp text textbox timer toolbox trim update updown upload useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





