473,473 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parse/modify file

Hi,

txt file.

list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj
Feb 6 '07 #1
3 989
Darko Bazulj schreef:
Hi,

txt file.

list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value
list li*******@domain.tld
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj

You'll need to open the file, parse the listname2 out and rewrite the file.
--
Rinze van Huizen
C-Services Holland b.v
Feb 6 '07 #2
"Darko Bazulj" <Da**********@discussions.microsoft.comwrote in
news:uq**************@TK2MSFTNGP04.phx.gbl:
How to change value for parameter2 in listname2 or how to delete
listname2 and all parameters for that list.
I would read the file into memory and overwrite the old file.
Feb 6 '07 #3
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@140.99.9 9.130...
"Darko Bazulj" <Da**********@discussions.microsoft.comwrote in
news:uq**************@TK2MSFTNGP04.phx.gbl:
>How to change value for parameter2 in listname2 or how to delete
listname2 and all parameters for that list.

I would read the file into memory and overwrite the old file.
Hi,

I thought something like that but I don't know how to achive that.
Can you give some example.

Also there is need to add/remove some parameter from the list.

Thanks for help.

Regards,
Darko Bazulj
Feb 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stuart Miller | last post by:
When using Java to read in an XML file, I am having problems getting the XML file to be parsed against the specified DTD. Background: I have an existing Java application that allows users to...
3
by: IWP506 | last post by:
Hey, I have a lot of common things I want to be included on different pages (i.e. the page title, the header, some buttons and such, etc.). So I was thinking of putting things like...
18
by: DaveLessnau | last post by:
I'm trying to learn C on my own and, apparently, my brain went on vacation somewhere. I just can't figure out how to parse the following function call: "void fillDeck( Card * const wDeck, const...
0
by: David T | last post by:
Try building the project first. VB.NET uses "codebehind", which means you have to compile the codebehind file (WebForm1.aspx.vb in this case) first. Regards, David >-----Original...
8
by: Brett Romero | last post by:
I get this error when I try to run my ASP.NET app on our server: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error...
7
by: akira | last post by:
Hello, I need to parse this XML file or XML stream . Is it possible to parse it with DOM reading each DataContainer one by one. <DataContainer> <name> </name> <birthDate> </birthDate>...
5
by: liming | last post by:
Hi all, I have to parse two text files on a weekly basis. Each range from 300kb to 1mb in total. Each text file has 5 columns (name,id, dollar, startdate,enddate), everytime, a) I need to...
14
by: Rob Meade | last post by:
Hi all, I'm working on a project where there are just under 1300 course files, these are HTML files - my problem is that I need to do more with the content of these pages - and the thought of...
2
by: Tonino Greco | last post by:
Hi all, I wonder if someone on the list can offer a suggestion as to how I can parse a config file that has the form: group1 name1 name2 group2
6
by: Richard | last post by:
Which way would you guys recommened to best parse a multiline file which contains two fields seperated by a tab. In this case its the linux/proc/filesystems file a sample of which I have included...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.