• Post Reply Bookmark Topic Watch Topic
  • New Topic

I/O problem

 
anonymozz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An input file/program with 72 or less characters in each line.
I need two outputs.
1) Read each line into a buffer/array of length 72. If there are less than 72 characters in a line, the buffer will be filled with the characters and /n 's.
2) An output program which is same as the input but with line numbers in front of each line.
Thank you
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check out our display name policy and modify your display name accordingly. Thanks.
 
Rodney Woodruff
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides changing your name,
You should know that it is not a good idea to try to get us to do your homework.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!