Taking input buffer in cmd

Node* input(){
int d;
cin>>d;
Node*head=NULL;

while(d!=-1){
    insertAthead(d,head);
}
return head;

}
in this function we are giving a input buffer from input.txt
prateek bhaiya did linked_list.cpp < input.txt how do we do this on windows

@Gautampriyadarshi if you have sublime you can add 2 lines of code as the template and create input.txt and output.txt just google it.
if not found tell i will share the link

sorry ,i didn’t quite get that

ok thanks ,will do this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

sir any idea about doing this in vs code

any link or something

@Gautampriyadarshi, refer this I am not able to get the input from input.txt file
tell me if it works for you or not

bhaiya main.cpp as in didn’t quite get it

@Gautampriyadarshi, are you aware of file handling in c++ ??

yes ,I understood this was using file handling ,but I am not much comfortable with it, if you would tell me how to make this code work ,It would be great help

i wanted a way like prateek bhaiya did like linkedlist.exe < input.txt

ohh let me check i don’t use it, i will inform you when i find the answer

found something …

@Gautampriyadarshi, actually his build configuration in sublime text is different from mine , i have asked him ,as soon i will get the response i will inform you .

ok./…

@Gautampriyadarshi, refer this :-

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.