7 Topics

Member Avatar for
Member Avatar for iConqueror

I am doing a little home project to learn more about collections and FileIO. I have made a little racing app where the user enters the racers details all of which are strings, and these details are inserted into a List<T> list and then once the user clicks the 'save' …

Member Avatar for tinstaafl
0
325
Member Avatar for iConqueror

I have been learning about the collections namespace in C# so have been doing some little self-made projects to learn. I have made a car race app where you enter in the name, car and place of the racer this is then stored in an array list. I can extract …

Member Avatar for ddanbe
0
2K
Member Avatar for jesskavidja

I have a bit of a baffling problem! I'm writing a tag matcher in XML and whenever I run the below procedure, I get a garbage value after the name of every tag **except for the first one**. When I add the array text to the parameters list, the garbage …

Member Avatar for rubberman
0
293
Member Avatar for sarah.mathieson.7

I am trying to write a program that creates a new file every time I use the application. Right now, this is what I am doing: outfile.open("Application.txt"); outfile<<"First Name: "<< firstName <<" "<<"Last Name: "<< lastName<<" "<<"Student Number: "<< studentNumber << endl; outfile<<"Email Address: " << emailAddress <<" "<< "Major: …

Member Avatar for vmanes
0
3K
Member Avatar for learntosucceed

I'm noob at GUI Swing. I have 2 questions. 1)I'm trying to implement a program that reads a text file, so I can use it to add multiple tabs to the program based on the amount of data in the text file. For example, text file have 3 names. I …

Member Avatar for nandosss
0
2K
Member Avatar for javaNooblet

Hi All, If I read in from a file and populate an array with its data(all strings), how can I control the way it prints(to the console for example).Right now it just prints a huge long line in the console of all its contents. I figure I will have to …

Member Avatar for stultuske
0
253
Member Avatar for HiHe

According to the Python 2.7 manual this construction of the with statement should work: [code]text = "aim low and reach it" fname = "test7.txt" with open(fname, 'w') as foutp, open(fname, 'r') as finp: # write text to file foutp.write(text) # read text from file mytext = finp.read() print("to file --> …

Member Avatar for vegaseat
1
169

The End.