# Stdlib in legato project

**URL:** <https://mangoh.discourse.group/t/stdlib-in-legato-project/2017>\
**Category:** mangOH Green\
**Created:** [October 16, 2018, 12:29pm UTC](https://mangoh.discourse.group/t/stdlib-in-legato-project/2017 "2018-10-16T12:29:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WinWin](https://avatars.discourse-cdn.com/v4/letter/w/5e9695/32.png) [@WinWin](https://mangoh.discourse.group/u/WinWin)\
**Post date:** [October 16, 2018, 12:29pm UTC](https://mangoh.discourse.group/t/stdlib-in-legato-project/2017/1 "2018-10-16T12:29:37Z")

</div>

Hello.  
I used mangoh green with wp8540.  
i connect to green whith ssh and creat file “/home/root/tt”  
I creat project in legato.  
and i want read this file. But i not open him.  
my code:  
COMPONENT\_INIT  
{  
LE\_INFO(“Hello, world.”);

```
FILE* fd;

fd = fopen ("/home/root/tt", "r"); 

if (fd == 0) {
	LE_INFO ("ERR OPEN\n");
	return;
}

```

}

What is problem?  
How to fix it?

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://mangoh.discourse.group/u/lotam)\
**Post date:** [October 25, 2018, 1:40am UTC](https://mangoh.discourse.group/t/stdlib-in-legato-project/2017/2 "2018-10-25T01:40:10Z")

</div>

Looks like similar post answered here:

> **[Stdlib in legato project](https://forum.sierrawireless.com/t/stdlib-in-legato-project/14173)**
>
> Hello. I used mangoh green with wp8540. i connect to green whith ssh and creat file “/home/root/tt” I creat project in legato. and i want read this file. But i not open him. my code: COMPONENT\_INIT { LE\_INFO(“Hello, world.”); FILE\* fd; fd =...
