Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 19
Registered: ‎06-21-2012
My Device: z10
My Carrier: Bell
Accepted Solution

About txt file saving

Hello everyone,

I got some issue about saving a text file. Now, i am running code at native SDK BB10 and I am using C++ to get sensor reading and try to save those data to a text file. Now the issue is, I am saved to "data/mytext.txt", and i did get sensor reading display on console, and file open succeed. I just couldnt find where my file is. i searched 'mytext.txt' through the whole computer and i still couldnt find it. Does anyone know what I did wrong? Thanks.

 

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: About txt file saving

[ Edited ]

Hi! They're created on device (or simulator). There are multiple ways to access them there. For example:

 

Momentics -> Window -> Show View -> Other -> QNX Targets -> Target File System Navigator

 

This page has more information:

https://developer.blackberry.com/cascades/documentation/device_platform/filesystem/

 


Andrey Fidrya, @zmeyc on twitter
Contributor
Posts: 19
Registered: ‎06-21-2012
My Device: z10
My Carrier: Bell

Re: About txt file saving

Thank you very much, and do you know if i get a real device later, can i use the same way?

Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: About txt file saving

This should work on device too. Also shared folders can be accessed via WiFi file sharing.

Andrey Fidrya, @zmeyc on twitter