|
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'm a complete beginner to programming.
I am trying to store 8 seperate pieces of information in a text file (like a database) [but not a SQL database], consisting of integers and strings.
How would I use an array to do this? Will an array collect data...
Answer Snippets (Read the full thread at microsoft):
Readline and writeline to read/write from a text file but how would I find specific data to show in my write the list of structures to a text file (as strings, obviously) and read them back in later followed....
|
Ask your Facebook Friends
|
Hi guys.
I have a richtextbox with multiple lines of data that I'd like to write to a text file.
I tried HdrFile.WriteLine(TextBox1.Text) but that simply writes everything in the box into the file as a single line. Is there any way to send the contents...
Started by Mudcake on
, 9 posts
by 4 people.
Answer Snippets (Read the full thread at vbforums):
However, the text then gets saved looking like this:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033 Acquisition
This method also seems to ....
RichText ) Thank you, Paul.
SaveFile ( "path" , RichTextBoxStreamType.
Try this:
vb Code: RichTextBox1.
|
|
I have a question about multiple replacing text
this are the scenario
to be replace=9999 new value=9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
9999 9000
please help it will replace line by line and if...
Started by vhorhat on
, 13 posts
by 5 people.
Answer Snippets (Read the full thread at vbforums):
And write the changed record to the output file ' Do Until EOF(intInFile) Line Input #intInFile, strLine objFSO = CreateObject("Scripting.FileSystemObject")
'change the path of the text file
Set objFile the type you....
|
|
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.
|
|
I am working on creating a VBA script which will:
1. Open when you open the Access 2010 database
2. Open a browser box for the location of a .txt file
3. Put that data into an Access table in the format I specify
4. Open a browser box for another .txt...
Started by smiling bandit on
, 13 posts
by 5 people.
Answer Snippets (Read the full thread at straightdope):
Code: DoCmd.TransferText, then....
For instance, the basic line to import a text file into an existing table using pre-defined import, HasFieldNames, HTMLTableName, CodePage)
So for a delimited text file, I'd use this.
|
|
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.
|
|
Please bear with me: this isn't a language debate or a flame. It's a real request for opinions.
Occasionally, I have to help educate a traditional text coder in how to think in LabVIEW (LV). Often during this process, I get to hear about how LV sucks....
Started by Underflow on
, 16 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
LabVIEW forces you to use the mouse to select VIs and program revision control systems like CVS and... .
There is just code fairly quickly in a text language.
Trying to find the right documentation was also a hard experience .
Rose or VB, etc.
|