Problem with File I/O

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Message
Author
User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Problem with File I/O

#21 Post by jph »

SimPassion wrote: Sat Oct 29, 2022 4:26 pm :D
Joe, reading the last personality you described, I recognize perfectly Jacques with his incredible coding level and ability to share practices on all area
absolutely spot on ! :D
Joe. CISSP, MSc.

Shimokuta
Posts: 113
Joined: Wed Feb 03, 2021 12:52 pm

Re: Problem with File I/O

#22 Post by Shimokuta »

Keith Baxter wrote: Wed Oct 26, 2022 12:43 am Hi,

Try a .json file. Looks something like this.

airports.json

You can test with this code. Put the .json file in the resource folder.

Code: Select all

static_data_load("airports.json", function(data)
	print(data["FAAB"]["AIRPORT"]["AREA"])
end)
Use this website to check if your .json is valid.

https://jsonlint.com/
Keith
Hi Keith
Which AIRAC Navdata is in json format??

gtrz

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: Problem with File I/O

#23 Post by Keith Baxter »

Hi,



Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

Shimokuta
Posts: 113
Joined: Wed Feb 03, 2021 12:52 pm

Re: Problem with File I/O

#24 Post by Shimokuta »

Thanks Keith for the quick reply!
Ah ok you convert it, tought there might be a ready to use json data file in the airac

Again ...thanks

JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

Re: Problem with File I/O

#25 Post by JackZ »

jph wrote: Sat Oct 29, 2022 4:29 pm
SimPassion wrote: Sat Oct 29, 2022 4:26 pm :D
Joe, reading the last personality you described, I recognize perfectly Jacques with his incredible coding level and ability to share practices on all area
absolutely spot on ! :D
I missed this one, but anyways, thank you for your kind words guys. :D
better late than never
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

Post Reply