|
Following hot on the heels of my question about how to read from a line in vb .net, I need to do the following:
change the line in a text file
[Path] = "c:\this\certain\path\"
with this line
[Path] = "c:\that\other\newer\path\"
these paths will most certainly...
Started by Niphoet on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi, read the text file into a string, iterate over each line and check if it's in format [Path are stored on disk, you can't write to one line without also updating every line the follows as I seek through the....
|
|
I need to delete an exact line from a text file but I cannot for the life of me workout how to go about doing this.
Any suggestions or examples would be greatly appreciated?
Related Questions
Efficient way to delete a line from a text file (C#)
Started by Goober on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
There is no generic delete-....
The best way to do this is to open the file in text mode, read each line with ReadLine(), and then write it to a new file with WriteLine(), skipping the one line you want to delete.
|
|
I want to modify a text file. It has a lot of lines of text in it. I want to add a line after a specific line (in the middle on other lines) and write strings there.
The code i have, writes to a specific line but it also overwrites the text on that line...
Started by reinhold on
, 5 posts
by 3 people.
Answer Snippets (Read the full thread at com):
) += & vbnewline & "my text" I get an error with that code.
|
Ask your Facebook Friends
|
I want to modify a text file. It has a lot of lines of text in it. I want to add a line after a specific line (in the middle on other lines) and write strings there.
The code i have, writes to a specific line but it also overwrites the text on that line...
Started by reinhold on
, 5 posts
by 3 people.
Answer Snippets (Read the full thread at vbforums):
) += & vbnewline & "my text" I get an error with that code.
|
|
I'm going to have to write a number of vba modules for a project I'm working on, and would prefer to use SciTe to the built in editer in Office.
SciTe allows you to redirect the effect of hitting F1 to a arbitary command with the selected text as an argument...
Started by mavnn on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Approach is to use the HTML Help command line program HH.EXE to either show specific pages on what might still be possible as far as linking to specific pages inside a CHM
Having said that, I don't think this file is the default....
|
|
I have an XML file say
<items> <item1> <piece>1300</piece> <itemc>665583</itemc> </item1> <item2> <piece>100</piece> <itemc>665584</itemc> </item2> </items>
I am trying...
Started by Thunder on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Please add checks whereever....
With [text()] to specific only those nodes that have a text() node:
// XDocument foreach(XElement textNode + "/" + node.Name); } } }
The above code will generate the desired output for any type of file.
|
|
Hi all
Pl help me with the vb code to create n number of files with specific size.
I have a code which would create text/word/excel files But I tried this code to create 'n' number of files....
To be clear I need to create 1000 txt files with the content...
Started by veerusat on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at vbforums):
Have a look into For..Next loops
The Write line could look like this:
Code: Write #My_filenumber\Desktop\myfile.xls" why would you create text files with .xls extension?
to make text files of specific....
|
|
Hi all
Pl help me with the vb code to create n number of files with specific size.
I have a code which would create text/word/excel files But I tried this code to create 'n' number of files....
To be clear I need to create 1000 txt files with the content...
Started by veerusat on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at com):
Have a look into For..Next loops
The Write line could look like this:
Code: Write #My_filenumber\Desktop\myfile.xls" why would you create text files with .xls extension?
to make text files of specific....
|
|
Ok guys, well here is my assignment for Thursdays final project.
Quote: : Employee Data, Part 1
Create an application that allows the user to enter the following employee data: First Name, Middle Name, Last Name, Employee Number, Department, Telephone...
Started by leprechanmonkie on
, 10 posts
by 5 people.
Answer Snippets (Read the full thread at extremeoverclocking):
He was very specific to using a text file....
I have my here Well guys, parts one two and three are all "done" lol .
But my instructor was clear on the instructions that it should write to a single text file.
|
|
On Tue, 7 Jul 2009 14:27:44 +0200, "Peter" <peter_l@myrealbox.com
Dear all
I have an existing vb app that is in english language which means that all
labels, buttons,form captions etc. have english text.
Now I like to extend this app so that it...
Started by Peter on
, 9 posts
by 6 people.
Answer Snippets (Read the full thread at omgili):
It allows for the
user to make region specific modifications a VB module with lots of text constants?
| I don't like to use just plain text files because I don't Setup....
The user to modify the text may be best.
|