is the file in the same dir as the main file or is it in a diferant file e.g. C:\folder\folder\myfile.txt
and your main file C:\folder\mainfile.cpp
if so you must specify the file dir
hope this helps
but it wold help to know the erorr
||=== Build: Debug in LoginSystem BYunknown (compiler: GNU GCC Compiler) ===|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp||In function 'bool IsLoggedIn()':|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|14|error: no matching function for call to 'std::basic_ifstream<char>::basic_ifstream(std::basic_string<char>)'|
C:\Programming#1\Login system\LoginSystem BYjustin\main.cpp|14|note: candidates are:|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|460|note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(constchar*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|460|note: no known conversion for argument 1 from 'std::basic_string<char>' to 'const char*'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|446|note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits<char>]|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|446|note: candidate expects 0 arguments, 1 provided|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|420|note: std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|420|note: no known conversion for argument 1 from 'std::basic_string<char>' to 'const std::basic_ifstream<char>&'|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp||In function 'int main()':|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|37|error: expected ';' before 'cin'|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|38|error: expected ';' before 'cin'|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|41|error: no matching function for call to 'std::basic_ofstream<char>::open(std::basic_string<char>)'|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|41|note: candidate is:|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|702|note: void std::basic_ofstream<_CharT, _Traits>::open(constchar*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\fstream|702|note: no known conversion for argument 1 from 'std::basic_string<char>' to 'const char*'|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|47|error: 'IsLoggeIn' was not declared in this scope|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|52|error: 'system' was not declared in this scope|
C:\Programming#1\Login system\LoginSystem BYunknown\main.cpp|58|error: 'system' was not declared in this scope|
||=== Build failed: 7 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|