| | |
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 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function generatetags html images input intel internet listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms winsock wpf wrapingcode xml year





