Questions tagged [external-data-source]
51 questions
-1
votes
2 answers
I am trying to print all of the logged-in users tasks from a file(tasks.txt). This is what I have so far but it only prints out one task
I am trying to print all of the logged-in users tasks from a file(tasks.txt). This is what I have so far but it only prints out one task.
elif choice == "vm":
for task in taskList:
taskItems = task.split(":")
if…

james bond
- 21
- 4
-1
votes
1 answer
Simple way to rewrite code to save correct output to text
I hope someone can finally help. I am trying to write code to save tasks to a text file. The text file takes input from the user and stores the info. I would like to find a very simple way to change my following code to add a number to the task so…
user12739323
-1
votes
2 answers
Please could someone advise on code format
I originally had to write code to write 3 lines to an external text file called output.txt. The first line shows the minimal number of the first line, the second line will show the maximum number of the second line and the third line will show the…
user12739323
-1
votes
1 answer
How to print user specific text from a txt file
Could someone help me with getting my program to print user specific information based on which user is logged into the program from info on a txt file. I have a menu in my program which only displays the current users tasks by typing in "vm".
This…
user12739323
-1
votes
1 answer
Manipulating data from text file - Python 2.7
I need help importing data like this from a text file:
Orville Wright 21 July 1988
Rogelio Holloway 13 September 1988
Marjorie Figueroa 9 October 1988
and display it on the python shell like this:
Name
O. Wright
R. Holloway
M. Figueroa
Birth…

Zee Dhlomo
- 69
- 1
- 1
- 9
-2
votes
1 answer
Xcode unable to load program? Getting error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x68)
#include
int main (void)
{
int col1, col2;
FILE *fname = fopen("1930_2001.txt" , "r");
fscanf(fname , "%d" , &col1);
}
Whenever I try to get information from the data file, before I even do that, I get an error that it can't…

RamonK
- 7