Re: [edk2] simple file operations using stdio.h

2013-07-25 Thread Laszlo Ersek
On 07/25/13 13:31, Mauro Faccenda wrote: > Hi Daryl, > > Once again, thank you for your help. > > I forgot to mention that I am using QEMU + OVMF (I need network support). > > I just double checked the file name and tried using the cp command on > Shell as you suggested. No dice. > > I also tri

Re: [edk2] simple file operations using stdio.h

2013-07-24 Thread Mauro Faccenda
Here are the information. The (meaningful) code: -- char currentdir[1024]; if(getcwd(currentdir, sizeof(currentdir))!= NULL){ printf("Working dir: '%s'\n", currentdir); } if(fopen("test.txt", "rb") == NULL) { printf("fopen failed. errno = %d\n", errno); perror("Cou

Re: [edk2] simple file operations using stdio.h

2013-07-24 Thread Mauro Faccenda
Hi Daryl, Thank you for your quick answer. that command shows the file content as expected. I'll try to check the information you suggested and post the results here. Mauro On Wed, Jul 24, 2013 at 2:52 PM, Mcdaniel, Daryl wrote: > Mauro, > > ** ** > > After a quick scan of your email

Re: [edk2] simple file operations using stdio.h

2013-07-24 Thread Mcdaniel, Daryl
Mauro, After a quick scan of your email, I can’t see anything wrong. I’ll try to reproduce it this afternoon and get back to you with my results. Sorry, but I have to ask the following stupid questions. 1) What happens if you enter “type fs0:\file.txt” at a (U)Efi Shell prompt? 2) Hav