system()
Mark Papadakis
markp at pathfinder.gr
Mon Aug 23 15:49:22 EEST 1999
Gia na pareis pisw to delta
des tin popen()
FILE *fl;
char buf[1024];
fl = popen("echo delta","r");
while(fgets(buf, 1024, fl))
printf("%s\n", buf);
pclose(fl);
an theleis na kaneis kati san ti database pu les gia mp3, an prokeite na xrisimopoithei se web environment, des SQL, flat files sux ( fread/fwrite .. )
MarkP
Bassoukos Tassos wrote:
>On Mon, 23 Aug 1999, NooBiouZ the UnstoPPaBLouZ SeXiouZ maChinouZ
>wrote:
>
>> > mporo meta px apo system("echo delta"); na paro
>piso to "delta" se ena
>> > string?
>>
>> Egw thelw na kanw akribws to antitheto dhladh na metaferw ena
>string sthn
>> system...exei kaneis kamia idea?
>>
>> ftiaxnw mia mp3 database se C kai exw ta ekshs....
>> #define data 65
>> ..
>> ..
>> printf("dwse to onoma tou album :");
>> scanf("%c", album[data];
>
>mhpws 8es na peis scanf("%s",album); ?
>to `man scanf` deixnei oti diabazei mexri to prwto whitespace
>character,
>gia na diabazei me to enter des thn gets/fgets
>
>> system("echo "To string pou einai ston pinaka
>album[data]" >> albums.txt");
>
>char buf[512];
>sprintf(buf,"echo \"%s\" >>albums.txt");
>system(buf);
>
>--
>Bassoukos Tassos +30 31 996011 / +30 93 7109954
> Computer Shaman and Informatics Thaumaturge
>
>--
>====================================================================
>Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
>Ta archives tis listas einai sto http://lists.hellug.gr/archives
>prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
>Gia opoiodipote problima stilte e-mail ston
>owner-linux-greek-users at hellug.gr
>====================================================================
>
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list