#include<stdio.h> int main(void) { char buffer[2048]; char far *pscr=(char far *)0xb8000000; FILE* fp; int i; for(i=0;i<100;i++) printf("hello world!"); for(i=0;i<1000;i++) buffer[i]= *(pscr+i*2); fp=fopen("src.txt","w"); fwrite(buffer,1000,1,fp); return 0; }