473,387 Members | 1,844 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,387 software developers and data experts.

Opening and reading a file

i need in VB6 to open a file, read it, close it, open it, write it, close
it.

how to do it?
Jun 15 '06 #1
7 8943

"Angelo" <Di************************@Lekker-Puh.us> wrote in message
news:44***********************@dreader11.news.xs4a ll.nl...
i need in VB6 to open a file, read it, close it, open it, write it, close it.

how to do it?


Believe it or not, the sequence of commands you will use is
Open
Input
Close
Open
Write
Close

Why don't you look them up in your help file, try it out, see how far you get,
and post your code if you get stuck?
Jun 16 '06 #2
Hey Steve Gerrard,

Thankyou for you're code!
And about the help, i didn't installed MSDN tough.

Angelo.
Jun 16 '06 #3
Oh sorry i see it was no code.

I wrote:
Thankyou for you're code!

Jun 16 '06 #4
On Fri, 16 Jun 2006 12:49:08 +0200, "Angelo"
<Di************************@Lekker-Puh.us> wrote:
Oh sorry i see it was no code.


For a VB5 Help file get it at:

www.jerryfrench.co.uk/utils/vb5help.zip

VB6 just has a few more bells and whistles
Jun 16 '06 #5
I am using VB6.. it it different?

"J French" <er*****@nowhere.uk> schreef in bericht
news:44***************@news.btopenworld.com...
On Fri, 16 Jun 2006 12:49:08 +0200, "Angelo"
<Di************************@Lekker-Puh.us> wrote:
Oh sorry i see it was no code.


For a VB5 Help file get it at:

www.jerryfrench.co.uk/utils/vb5help.zip

VB6 just has a few more bells and whistles

Jun 17 '06 #6
On Sat, 17 Jun 2006 11:02:07 +0200, "Angelo"
<Di************************@Lekker-Puh.us> wrote:
I am using VB6.. it it different?


Not for Files - or most 'basic' things

VB6 has a few extra things above VB5
- but you can regard VB5 Help Files as incomplete VB6 Help Files
Jun 17 '06 #7
sashi
1,754 Expert 1GB
Hi Angelo,

show us of what u have completed so far.. here we do not do the coding for u but, instead we help u to solve ur coding problem.. good luck..
Jun 18 '06 #8

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

Similar topics

2
by: Fraser Ross | last post by:
I want to prevent std::basic_ifstream from opening a file for reading when it is passed the file name with any wrong case of a letter. If that can't be done is there anything else that could be...
14
by: Mike - EMAIL IGNORED | last post by:
Using RH9, from this fragment: fstream theStream_; string fPath = "myFile"; int mode = O_EXCL | O_CREAT; theStream_.open(fPath.c_str(),mode); I get the failure shown below. ...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
11
by: aldrin | last post by:
I'm trying to run this code under windows xp sp2 using codeblocks v1.0 compiler with great difficulty.There is no problem with running this under KDevelop in linux. Any help would be greatly...
2
by: OutdoorGuy | last post by:
Greetings, I have a "newbie" question in relation to opening files from C#. I have a Windows form where I allow the user to type in a file extension in a text box (e.g., "xls"). I then take...
4
by: slawson7 | last post by:
Easy one for all you Perl gurus out there. I'm opening a text file, reading the contents into an array, doing some processing and spitting out the results to another file. Although I've got this...
1
by: raghu | last post by:
i want to know the difference between 'r' mode and 'r+' mode 1.i = open('c:\python25\integer.txt','w')-------->for writiing i.write('hai')--------->written some content in text file i =...
9
compman9902
by: compman9902 | last post by:
Hello, and thank toy for reading this post. Thus far, this website has helped me a lot, (I have finally finished my encryptor: "site removed by moderator", go to the downloads link) and I will...
1
by: engggirl3000 | last post by:
Another question I have, what is the difference between reading a text file to a program and opening a text file in the program? A sample of one of the text files is formatted like this: 3 ...
14
by: W Marsh | last post by:
Hi. In my application I do something very simple - I open a file, lock it exclusively, write some data to it and close it. If I re-open it in the same process (I mean before the script has...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.