Search:

Type: Posts; User: Tommy7

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,197

    #include #include int...

    #include <cstdio>
    #include <windows.h>

    int WriteAllButOne(char* string, int line)
    {
    FILE * tempfile;
    tempfile = fopen("output.txt","wb");
    if (tempfile == NULL) {
    return 0;
    ...
  2. Replies
    6
    Views
    1,197

    Um, sorry if I wasn't clear, but the whole point...

    Um, sorry if I wasn't clear, but the whole point of that function is to write all of the lines in a text file except for one specified line. I didn't add a hard limit for the number of lines that I'm...
  3. Replies
    6
    Views
    1,197

    Test.txt: This is a test file that I made so...

    Test.txt:

    This is a test file
    that I made
    so that I could test
    stuff
    right?
    0
    0
    0
  4. Replies
    6
    Views
    1,197

    Strange output..

    #include <cstdio>
    #include <windows.h>

    int WriteAllButOne(char* string, int line)
    {
    FILE * tempfile;
    tempfile = fopen("output.txt","wb");
    if (fopen == NULL) { return 0; }
    int x = 0;
    int i =...
  5. Replies
    3
    Views
    29,006

    Much appreciated!

    Much appreciated!
  6. Replies
    3
    Views
    29,006

    invalid conversion from `char*' to `char'

    Hello, I am new to C++, I just started yesterday. I am trying to make a fuction where I can return a line from a .txt with linesi(file.txt,line number).

    But I get the following errors, and being...
Results 1 to 6 of 6