File Handling in Vb

mendosas_enemy
05-04-2003, 04:33 AM
I have a university assignment due in over the next week. I have to produce a cash point program (atm). I have to construct a program that allows the creation of customer information such as account number, customer name, openning balance and credit limit. This program has got to work as if it is a real cash machine. I have no idea how to store the customers information in file handling. Can anyone help me please?

Thanks
Alison

phinds
05-04-2003, 04:59 AM
start the project and if/when you run into difficulty, post specific code with a specific question. If you don't know how to deal with files, there is sample code in the "sandbox" project at the link below my name.

mendosas_enemy
05-04-2003, 07:35 AM
Does anyone know how I can save data to text file please?

Daraja
05-04-2003, 07:40 AM
Sure... I know how...

Look at this example:


'This code is to overwrite a (new) file
Open AppPath & FileName For Output As #1
Print #1, strData
Print #1, strData
Close #1

'This code is to add data to an existing file
Open AppPath & FileName For Append As #1
Print #1, strData
Print #1, strData
Close #1


Hope this is usefull to you!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum