From ea0be5b3a4b2d453ae6962fa21d72fb5d7cb3012 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 10 May 2016 17:15:00 -0400 Subject: Changed file type opeing to be text --- ws2a/writetest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ws2a/writetest.c b/ws2a/writetest.c index ea23b0f..03294fb 100644 --- a/ws2a/writetest.c +++ b/ws2a/writetest.c @@ -18,8 +18,8 @@ int main(){ FILE* tofile; char tofilepath[100]; - sprintf(tofilepath,"/home/git/wswebpage/ws2a/%s.txt","test"); - tofile = fopen(tofilepath,"wb"); + sprintf(tofilepath,"../ws2a/%s.txt","test"); + tofile = fopen(tofilepath,"w"); fprintf(tofile,"This is some text"); fclose(tofile); printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10); -- cgit v1.2.3-70-g09d2