how to delete space in a file while reading u

April 17, 2011 at 23:13:56
Specs: Windows XP
i want the code to print a string on the screen without space by reading from a file.String stored in the file contains space character.

See More: how to delete space in a file while reading u

Report •


#1
April 17, 2011 at 23:52:20
In the print routine, just don't print the character if it's a space.

Report •

#2
April 18, 2011 at 00:54:39
sorry... I want to read the string without a space for comparison.

Report •

#3
April 18, 2011 at 00:57:05
Read into a string then copy that string to a new string, character-by-character, omitting any spaces.

Report •

Related Solutions

#4
April 18, 2011 at 01:01:54
please give me the code for that

Report •

#5
April 18, 2011 at 01:02:22
am using Turbo c++

Report •

#6
April 18, 2011 at 05:25:40
TBH, if you can't write the code for that you should be pursuing a different hobby (or, more likely, a different course). Computer programming just isn't your thing.

Do yourself a favour and try to do it by yourself.


Report •

Ask Question