Read/write INI files under NT -
Hello!
I have one (quite) simple question:
Can I use GetPrivateProfileString and WritePrivateProfileString under WinNT 4?
Read/Write Text files -
Hello, I search for code to read and write text file. I want to open large files(100K +) and then read them and in the end write them back to files.
Thank you very much,
Kiron
read/write ini files -
I want to use an ini file in my application.
In VB6 I would use the API calls
GetPrivateProfileString and WritePrivateProfileString. Does anyone know how to read/write ini files in .NET.
I looked on allapi but there is no .NET equivalent.
Does this mean there isn't one.
R/W files -
In my program right now i have two files opened. I take a transaction from the transaction file and search through the master file until i find a match. I have both files opened in input mode and read access. Now i need to write to the master file. I cant close the file or ill have to
Problem -
As some of you already might no, i been having a lot of problems with source because I am using such an out dated visual basics...well I have ran into this problem once again with ini files. Since i havnt been able to read and write ini files using the get and write string function co
Ini files. -
Hi, I have been given modules to read and write to .ini files before. But when ever I have gone to call on the functions I have gotten errors.
So can someone please give me a code to go into a module for the read and write functions. and explain how to use them?
thanx in advance.
writing files -
I need to be able to save files to a folder on the site I am working on. I have the permision set to allow read, write, no execution. I get an error saying I have to grant ASP.Net Write permisions on that folder/file.
I am creating files on the fly. Always a new file. Windows 2000
Add Multiple Files -
This is for VB6 ..
is it possible to open a file as binary, read it into a string, then open more files as such, and add them all to a single string and write to single exe ... then if I want to extract them, somehow pull them all out and back again as the exe's they once were . ..
Storing Variables Into Files READ/WRITE -
Hey id like to know what should i use to store variables into files then be able to read them again after a certain event has ocurred. Im using sequential file access but its giving me a hard time i really wish there was something easier it doesnt even have to be stored in a file just
Help reading an ini file to tell vb where to copy files -
I am trying to write a little app that will update some files for me.
I have an .ini file on the computer that tells where my Data path is.
I need to have an app that will read the ini data path and place the files in that location of the data path in the .ini
Some files need
Read write .ini files in vb -
Please help me how to create, read and write .ini files....
-Khamal-
Transferring Large size files thru TCP/IP -
Im doing a program which transfers files thru tcp/ip in an intranet environment. It does work fine for small files...but the problem is we have to transfer files which are having 6 to 10 MB in sizes...and multiple files have to be transferred...any ideas would be really appreciated...
chmod -
ok i know how to chmod a file but in the script i'm using the instructions say to chmod some files to 755 and some to 666 but on my host to chmod something i cant put in a number i have to choose between Owner>read, write, execute
Group>read, write, execute and Other>read, w
file/folder permissions [resolved] -
Hi,
I have written a PHP that saves its data into files contained in a subfolder of the directory of the script. I cant figure out what CHMOD permissions I need to give to the scripts to make this work how I want.
Basically the script needs to be able to read and write to the files
Reading in large undelimited files -
Please excuse my ignorance - just started learning!
I have a number of 10mb files that are in ASN.1 format. I wish to load in each file, manipulate it, and write it back out in .csv format.
Do I use 'get' to read in the entire file into memory, then do byte manipulation and write
Use binary files -
Hi vb-world:
I only want to aks a simple question;
How can i write and/or read binary files?, I'm using the method Open "file" For Binary Access Write As #1 but I can write into the file. If I use Print, Write or Put #1 I get an error. What I'm doing wrong?
Thanks in
How to read and write files using java -
i'm trying to read and write files using java...
some errors occurs when i'm trying this code..
Error in java: Cannot find symbol
location: class java.io.FileOutputStream
FileOutputStream fout = new FileOutputStream(outputFile);
^
import java.
How to make read-only files UN-EDITABLE -
Hi,
I'm using Visual Basic 6. I want to know how to configure VB6 so that read-only project files i.e. .frm and .bas files cannot be edited.
By default you can EDIT the files but ofcourse when you go to SAVE the changes you can't. I don't want to even be able to EDIT the file tho
How to read & write Thumbs.db files -
Hi all....
I need to know how to read Thumbs.db files and read images it contains, and how to modify data inside it like images ,so I can set the folder Thumbnail picture.
Preventing read-only files from being edited with the Visual Basic 6 IDE -
Hi,
I'm using Visual Basic 6. I want to know how to configure VB6 so that read-only project files i.e. .frm and .bas files cannot be edited.
Read-only files by default can be EDITED but of course when you go to SAVE the changes you can't. I don't want to even be able to EDIT the
Problems with the Stream -reader and -writer -
I am making a program where i am using the stream -read and write command. But if i use it I cant't read and write the danish letters (æ, ø, å). Is there anyone who knows a way to write txt-files in VB so you can include the danish letters.
Reading From Multiple Files -
This is what i want to do i want the form to startup and read each line from a file and put it in the listbox and if i click on that item it can read the line of the same line of a different file and write the line from that file to a file.
Example:
Files:
File 1:-------------
reading and writing to *.dat files -
I want to write info to .dat files but i can't write more then 1 line while i want to write something like this:
Lokaal 251
10.42.251.1
10.42.251.2
10.42.251.3
10.42.251.4
And i want to read it line by line (just like .ini)
how do i do this ???
Read/write files in VB -
My friend need to do a application that able to read from a file to get some parameters for the application to run. The application will then generate some data into another text file (storing informations). The application should have limitation of the numbers of line for the content
how to read opened files using vb.net -
Hi,
I have written a backup solution using vb.net and C#.Net.
But, I am not able to backup the opened files, which will be skipped.
Can anyone please suggest me some idea to read and write opened files using vb.net ?
Thanking you
Regards
Praveen
reading files -
okay, i no the code for reading or writing to files on a:\, but im not sure how u do it for any files of c:\. i mean... how do u chose what files to write/read to @ run time?? it would be really great if some1 could help
thanks
burn
Read\Write to text files. -
Hello,
I am looking for a good information source that can explain in detail the different methods of implementing the read\write to file methods. Most of the tutorials that I have been looking at only scratch the surface (basically giving me just enough rope..). Any assistance woul
Write to text files -
I know how to read text files, how do you write to them? Say if I wanted to record what the user said in a form, how can I do this?
Give Modify/Write rights to those included files in the setup on target machine -
Hi,
Does anyone know where I can go to set up the user's rights (write/modify) for all those working files that I need to include in the Setup files (*.msi)?
At the moment, only the one with the Administrator rights can run my application since he/she has the full rights to acces
writing different files into one backup-file -
Hi,
My boss wants me to write a program that does the following:
Take all files from one (or more) directory. Then store these files in one big file. It will be used to make safety-copies of our working-dirs.
Question:
Is it possible to take different files (word-files, exe-fil
How do i read and write to a ini files -
How do i read and write to a ini files?
How to Read and Write to text files....... -
What would the code look like if I was trying to do something like this:
-----
//file1.txt
TITLE1
hello
TITLE2
Goodbye
------
1. IF A = 1 THEN
Read what's under TITLE1 (only) into a STRING
ELSEIF A > 1 THEN
Read what's under TITLE2 (only) in
[2005] read files from directory -
Hi guys,
I have aproject that needs to read many files and then write them to other files ..
till here everything is fine..
one more thing I need to do is, to allow the program to process many files in one
directory at once,
any hint on how to do that?
thanks in
Is a .ini fle similiar to any other text file -
Hello fellow programmers, I would just like to know if a .ini file is similiar to any other text file and if there r any special API calls to read and write to .ini files. If yes, what r they, and if no, what is the best way to write/read from .ini files?
Reading files in chunks (multiblock read) -
Hi peeps,
My application allows the copying of files from one place (hard drive) to another (hard drive). My problem is that on large files (>200 megabytes) the pc seems to hang while its being copied using the API CopyFile.
What i would like is to read all files in blocks/chu
Questions for text files! -
I have questions for text files!
1. What are the major differences between Random and Binary. If using Random to manipulate as a database, how can I tell the number of records in a text file?
2. For Lock, what is SHARED, LOCK READ, LOCK WRITE, LOCK READ WRITE?
merging avi files -
i have 2 avi files, source1.avi and source2.avi.
After processing source2.avi, i wish to append it as source1.avi. but my code dun seems to work:
nFilenum = FreeFile
Open Source1 For Binary Access Read Lock Read Write As _ #nFilenum
ReDim Buffer(1 To LOF(nFilenum))
Reading Read-Only Attributes -
Hi,
I want my program to read all files and sub directories in a user-typed location on there computer and report on how many files in that directory and all sub directories and files are read-only, and then attempt to remove there read-only attributes and report on how successful
[3.0/LINQ] using files from a nonlocal source + local source -
Alright im working on a little login system with a couple of my buddies. one of them encrypted the passwords and stuff already and all thats missing is to add them to an ftp server so we can access them. now the only problem is we dont know how to connect to an outside source(the ftp s
ini files on windows 2000 -
I am using Visual Basic 6 on Windows 2000.
I want to read and write to an ini file, but the function GetPrivateProfileString does not work. It does not return me anything. All the rest (GetPrivateProfileInt and wrtting to the ini file) is working fine.
In the msdn site they recommed
Concatenating DAT. Files -
Please does anyone have an idea as to how to read, write and concatenate DAT. files using VB 6.0 ?
I'm down here please help!!!