| | |
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 |
Tag cloud for VB.NET
.net .net2008 2005 2008 access account application array arrays basic beginner browser button buttons center checkbox client code convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel fade filter forms ftp generatetags gridview html images inline input insert intel internet lib listview mobile monitor net objects open panel passingparameters pdf picturebox port position print printing problem read remove save searchvb.net select serial settings shutdown soap sorting sqlserver survey table temperature textbox timer timespan transparency trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms wpf wrapingcode year





