# Getting this weird error: unknown type name 'fsteam'

**URL:** <https://root-forum.cern.ch/t/getting-this-weird-error-unknown-type-name-fsteam/57890>\
**Category:** Newbie\
**Created:** [January 18, 2024, 9:08am UTC](https://root-forum.cern.ch/t/getting-this-weird-error-unknown-type-name-fsteam/57890 "2024-01-18T09:08:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HitMan01KW9](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/hitman01kw9/32/35457_2.png) [@HitMan01KW9](https://root-forum.cern.ch/u/HitMan01KW9)\
**Post date:** [January 18, 2024, 9:08am UTC](https://root-forum.cern.ch/t/getting-this-weird-error-unknown-type-name-fsteam/57890/1 "2024-01-18T09:08:24Z")

</div>

* * *

_ROOT Version:_ 6.30.2  
_Platform:_ Windows10

* * *

I’m getting this error when trying to read a data file data.txt. I’m new to Root, I don’t know where is the problem and no one seemed to get this error. Can anyone help me ? This is my code:

```auto
#include <iostream>
#include <fstream>

void main()
{

	TH1F *hist = new TH1F("hist", "Histogram", 20, 0, 10);
	fsteam file;
	file.open("data.txt", ios::in);
	
	double value;
	
	while(1)
	{
		file >> value;
		hist->Fill(value);
		if(file.eof()) break;
	}
	file.close();
	
	TCanvas *C1 = new TCanvas();
	hist->Draw();
}

```

and the error is simply; unknown type name ‘fsteam’

Sorry if it’s a very basic question.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 18, 2024, 9:14am UTC](https://root-forum.cern.ch/t/getting-this-weird-error-unknown-type-name-fsteam/57890/2 "2024-01-18T09:14:57Z")

</div>

Try with `fstream` instead of `fsteam`

---

<div class="post-metadata">

**Author:** ![HitMan01KW9](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/hitman01kw9/32/35457_2.png) [@HitMan01KW9](https://root-forum.cern.ch/u/HitMan01KW9)\
**Post date:** [January 18, 2024, 9:15am UTC](https://root-forum.cern.ch/t/getting-this-weird-error-unknown-type-name-fsteam/57890/3 "2024-01-18T09:15:32Z")

</div>

I’s so dumb, thanks
