hey everyone..
i have a doubt in C files.how can i read a file from SDRAM.
cutelucks
hey everyone..
i have a doubt in C files.how can i read a file from SDRAM.
cutelucks
Read from it the same way you read from any other media. Your OS detects it and maps it to a drive letter or location, and you read from it as per normal.
Quzah.
Hope is the first step on the road to disappointment.
that was my question.how do we read a file from any external device like SDRAM
Just like you'd read any other file:
The first argument, the path, is completely OS dependent and varies wildly if you use windows or linux. Just let the user browse for the file or enter the path himself.Code:FILE *fin = fopen("Z:\\file.txt", "r");
My question is if i wish to read a file stored in RAM to the processor,how can i do it?
Stored in ram how? If it's a ram drive (ala DOS), then it's mapped to a drive letter. Otherwise, you need to actually explain what the hell you're talking about.
Quzah.
Hope is the first step on the road to disappointment.