473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Writing to an INI file WritePrivateProfileString()

16
Hello

Yes I know before you say I know INI files are outdated and xml should be used instead, but I have a very specific reason and an INI file must be used as it is also being used by an old VB app.

I have a C# asp.net application which has been running quite happily using WritePrivateProfileString() from KERNEL32 and writing to my INI file, but for some reason this has stopped working, so I now need another method.

Does anyone have any suggestions of any pre-written methods I can use to read and write to my INI file?

I know I can probably write something my self, but if there is something already out there I would prefer to use it.

Thanks in advance

Bex
Nov 29 '07 #1
0 1418

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shane Mergy | last post by:
i have a program that reads through an ini file and does stuff so far the only thing i am having trouble with is the writing to the ini file. if the section is alreadey there i want to do a search...
4
by: Phillip Galey | last post by:
With the following VB.NET code, ---------------------------------------------------------------------------- ----------------------------------------- Private Declare Function...
11
by: Don | last post by:
I created a module to work with INI files and compiled it to a DLL file. Then when I try using one of the functions, it tells me that the function is not defined. I even put it inside a namespace...
5
by: Adam Honek | last post by:
I'm using GetPrivateProfileString and WritePrivateProfileString for IO to an INI file. How does one delete an trying within an INI file? Thanks, Adam
6
by: Adam Honek | last post by:
Can anyone spot why the below function is failing? It returns true but when looking inside the INI file there's no new added section. ****CODE**** Public Function WriteINIFileSection(ByVal...
1
by: lactaseman | last post by:
While I know this is not the correct venue... I realize this is of little to no importance to most out there... however, if I had found this in my initial searches, I would have used this. So, as...
3
by: TBoon | last post by:
How do i read and write ini file using vb.net?
4
by: Thanh-Nhan Le | last post by:
Hi, Is there any way to use the API function WritePrivateProfileString in NET framework 2.0? Thanks Nhan
5
by: CSharp-Jay | last post by:
So I have been programming in C# on a personal level as of lately, and am curious about something. Lately I have been experimenting around with file create/write, etc. I can open and read the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.