Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-23-2005, 01:35 PM   #1 (permalink)
someone_somewhe
Registered User
 
Join Date: Jun 2005
Posts: 3
someone_somewhe is on a distinguished road
Question Saving to files and retrieving

its very simpple code but it doesnt work for me


When i press the command button to retreive the data from the file, it will not work i get Path/File access error
Dim memory As String
i am just doing this to test out how ti works for another program im working on but, itsnot
my code:


Private Sub command1_Click()
memory = text1

Put #1, 1, memory

End Sub

Private Sub command2_Click()
Get #1, 1, memory
End Sub

Private Sub Form_Load()
Open "c:\file1.txt" For Random Access Write As #1 Len = 20

End Sub
someone_somewhe is offline   Reply With Quote
Old 08-02-2005, 06:27 AM   #2 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
I have Question!

What does len = 20" mean?

Many Thanks
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 08-15-2005, 09:53 AM   #3 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
This is VB code not C++!
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 08:42 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting