Menu
JAQForum Ver 19.10.27

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

Posted: 03:19am
26 Nov 2025
Copy link to clipboard
palcal
Guru


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"
 
Posted: 07:22am
26 Nov 2025
Copy link to clipboard
phil99
Guru


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
 


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

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