summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-10 17:15:00 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-10 17:15:00 -0400
commitea0be5b3a4b2d453ae6962fa21d72fb5d7cb3012 (patch)
tree7755e353442c3f5c0c6564aa8f17743da002ed02
parentb9feccc70f1d364ac721a18d750d1a289c98caf4 (diff)
downloadwebpage-ea0be5b3a4b2d453ae6962fa21d72fb5d7cb3012.tar.gz
webpage-ea0be5b3a4b2d453ae6962fa21d72fb5d7cb3012.tar.bz2
webpage-ea0be5b3a4b2d453ae6962fa21d72fb5d7cb3012.zip
Changed file type opeing to be text
-rw-r--r--ws2a/writetest.c4
1 files 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);