Ifstream

/ˈaɪf.striːm/

ইনপুট ফাইল স্ট্রিম (C++-এ ফাইল থেকে ডেটা পড়ার স্ট্রিম/ক্লাস)

Origin & History

Formed in C++ naming from “i(nput)” + “f(ile)” + “stream”, popularized via the standard library type std::ifstream in <fstream>.

C++ নামকরণে “i(ইনপুট)” + “f(ফাইল)” + “stream” থেকে গঠিত; স্ট্যান্ডার্ড লাইব্রেরির <fstream>-এ থাকা std::ifstream টাইপের মাধ্যমে এটি প্রচলিত হয়েছে।

Definition

An abbreviation of “input file stream”; in C++ (header ), std::ifstream is a stream class used to open a file for input (reading) and extract characters or formatted data from it.

“input file stream”-এর সংক্ষিপ্ত রূপ; C++-এ (হেডার ), std::ifstream হলো একটি স্ট্রিম ক্লাস যা ইনপুট (পড়া) উদ্দেশ্যে ফাইল ওপেন করে এবং সেখান থেকে অক্ষর বা ফরম্যাটেড ডেটা পড়তে/এক্সট্র্যাক্ট করতে ব্যবহৃত হয়।

Parts of Speech

Noun:
Use an ifstream to read the configuration file.
কনফিগারেশন ফাইল পড়তে একটি ifstream ব্যবহার করুন।

Usage Examples

std::ifstream in("data.txt");
std::ifstream in("data.txt");
If the ifstream fails to open, check the file path and permissions.
ifstream যদি ওপেন হতে ব্যর্থ হয়, তবে ফাইল পাথ এবং অনুমতিগুলো পরীক্ষা করুন।
The program reads integers from an ifstream using the >> operator.
প্রোগ্রামটি >> অপারেটর ব্যবহার করে ifstream থেকে পূর্ণসংখ্যা পড়ে।
Remember to close the ifstream when you are done reading.
পড়া শেষ হলে ifstream বন্ধ (close) করতে মনে রাখুন।

Synonyms

Input file stream C++ input stream (for files)

Antonyms

Ofstream Output file stream

Related Forms

Idioms & Phrases

Open an ifstream
একটি ifstream ওপেন করা (ফাইল থেকে পড়ার জন্য)
Read from an ifstream
একটি ifstream থেকে পড়া
Check ifstream state
ifstream-এর স্টেট/অবস্থা (fail/eof ইত্যাদি) পরীক্ষা করা