Skip to content

Commit

Permalink
Tried to change enxtension for encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro228 committed Feb 12, 2021
1 parent 70b1d5c commit 286a055
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions FileExplorer.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,13 +669,24 @@ int main(void) {

char fileenstr[5000] = "";
char enstr[5000] = "";
char fileenname[1000] = "";

strcpy(lastDirFile, lastDir);
strcat(lastDirFile, file_url);
strcpy(file_url, lastDirFile); //Copies strings

file = fopen(file_url, "r");

/*
Trying to change file extension
chdir(file_url); //Sets current working dir
//getcwd(cwd, 1000)
strcpy(fileenname, getcwd(cwd, 1000));
strcat
*/

if(file == NULL) { //Error handler
text_color(COLOR_RED);
printf("\nUnable to find file '%s'.\n",file_url);
Expand Down
8 changes: 4 additions & 4 deletions FileExplorer.layout
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Release" />
<File name="license.txt" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="FileExplorer.c" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="10985" topLine="158" />
<Cursor1 position="26599" topLine="661" />
</Cursor>
</File>
<File name="colors.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
Expand All @@ -17,9 +17,9 @@
<Cursor1 position="1954" topLine="0" />
</Cursor>
</File>
<File name="FileExplorer.c" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<File name="license.txt" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1692" topLine="751" />
<Cursor1 position="10985" topLine="158" />
</Cursor>
</File>
<Target name="Debug" top="FileExplorer.c">
Expand Down
Binary file modified bin/Release/FileExplorer.exe
Binary file not shown.
Binary file modified obj/Release/FileExplorer.o
Binary file not shown.

0 comments on commit 286a055

Please sign in to comment.