Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:54 28 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Windmills : WebMite create file in A:/

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2007
Posted: 03:19am 26 Nov 2025
Copy link to clipboard 
Print this post

RP2350W
In my program I am trying to save a file to Drive A:/ using
Open "A:/weather" For Output As#1
 Print #1, rain;",";rainyest;",";RainMonth(MOY);",";rainyear
 For mo = 1 To 12
 Print #1, RainMonth(mo)
 Next mo
 Close #1

How do I create the file "weather" in Drive A:/
When I run I get an error 'can't find the file'

I had this running on a Pico 2040 for years and now trying to use a WebMite so I can also send the information to my local network. The WIFI part is working but I cant save the data. I need to sent the data from my outdoor unit to the indoor unit using HC12.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2840
Posted: 07:22am 26 Nov 2025
Copy link to clipboard 
Print this post

I don't have a RP2350W to test on but something you could try:-
A:
Open "weather" For Output As #1
Print #1, rain;",";rainyest;",";RainMonth(MOY);",";rainyear

For mo = 1 To 12
  Print #1, RainMonth(mo)
Next mo

Close #1

Though if the intention is to build a record over time perhaps replace "Output" with "Append".

Edit.
Or just leave out the slash, that works on other Picos.
eg
Open "A:weather" For Append As #1
Edited 2025-11-26 22:00 by phil99
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025