Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
void main(void){ char fname[20]; char lname[20]; printf("Please Enter Your First Name: "); scanf("%s", &fname);//This way will not include things after space printf("Please Enter Your Last Name: "); scanf("%s", &lname);//This way will not include things after space FILE *f; f = fopen("name.log","a"); fprintf(f,"%s %s \n",fname, lname); fclose(f); printf("Hello %s,\nYour name as been saved.\n", fname); printf("=============================\n"); printf("Name Log Data\n"); printf("=============================\n"); char t; f = fopen("name.log","r"); while((t = fgetc(f)) != EOF ) printf("%c", t); fclose(f); printf("-------------------------------\n"); printf("Please Press Enter to Continue."); getchar(); getchar(); }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)