| | |
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 |
.net .net2008 2005 2008 access account arithmetic array arrays basic bing button buttons c# center check checkbox code combobox convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output panel passingparameters picturebox picturebox1 port position print printing problem project read remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer timespan toolbox trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio2008 web winforms wpf year





